From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, PDS_RDNS_DYNAMIC_FP,RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id EED721F8C6 for ; Tue, 3 Aug 2021 16:21:12 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D228D393B012 for ; Tue, 3 Aug 2021 16:21:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D228D393B012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1628007671; bh=zxOHIrFunD8wZ/lgXh3S6UINzLbZ1CWkOTqhMjbNoI4=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=REGfppkujzU8GEPf+fYesqXH261BnxPp09fOzUldxNnPlmq+KXsW1OJlIHoAn/LiI GvZ95kh3Pe/Y7Io25Z82HKSY7L0MjiqdhBh+4ctnOug1Dco2rNPfkHRhwe1q3IsG8X Psn22tPP1OS+f1Xlny51Trr6y4vD1Mmflg54cMTg= Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by sourceware.org (Postfix) with ESMTPS id CCF513853805 for ; Tue, 3 Aug 2021 16:20:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CCF513853805 Received: by mail-qt1-x832.google.com with SMTP id g11so14291595qts.11 for ; Tue, 03 Aug 2021 09:20:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zxOHIrFunD8wZ/lgXh3S6UINzLbZ1CWkOTqhMjbNoI4=; b=j1l/xeHSHnnBdf7IrMU4FLFOO3bvMZdIIV6FXMqpXnI6QcONVgFUaMNGkbojXt9qwP 8mUKe9CoRRenVkKnhF40wKw/aRFWsqjvZkkmqNjD1iIK620QftKIDxjtzLt2h5qALGAb /eruJm1FiHLqfmMk3unNqoun0gi4l/h78t6q7GoapQGWXdcqOmDfsZ8ZwhJB8BvSEaVk wgHCXmIHvPzCldNK7odGg3qjAL6fDB8KeGShDLYQ/5pYtk9WtFkzA8Ytv5wl97y06JJz d0aDhuf8uEwuwYgZ0gO1fsuRVwihKDdRK7skCnBDD6NlMdAVrt+zHwuJaYDJ9HlgNQHX YBag== X-Gm-Message-State: AOAM533CpK3Nt4MT18/BQYSJEIcOp6z5sLzUt7fpzr52Wbp5KIVBRW2z G2XpXP8gRt3FNws+BH4Y5jTB7YoybTg= X-Google-Smtp-Source: ABdhPJw5Na4VddUjHWnJcv4PGqzZxU9yQfm955rP1bd3fEPNEiRBvTFa0rvH01vwJa4W+ruf/Xsk0g== X-Received: by 2002:ac8:7092:: with SMTP id y18mr19107131qto.36.1628007651300; Tue, 03 Aug 2021 09:20:51 -0700 (PDT) Received: from [192.168.0.41] (75-166-102-22.hlrn.qwest.net. [75.166.102.22]) by smtp.gmail.com with ESMTPSA id x14sm6206958qtv.17.2021.08.03.09.20.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Aug 2021 09:20:50 -0700 (PDT) Subject: Re: Failures building glibc with mainline GCC To: Joseph Myers References: <033b535d-8adc-bb82-dff5-4e6d1d357358@gmail.com> Message-ID: <60297d58-80ed-105b-b020-c86ae5e7867c@gmail.com> Date: Tue, 3 Aug 2021 10:20:49 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Martin Sebor via Libc-alpha Reply-To: Martin Sebor Cc: GCC Mailing List , Martin Sebor , Aldy Hernandez , libc-alpha@sourceware.org Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On 8/3/21 9:54 AM, Joseph Myers wrote: > On Mon, 2 Aug 2021, Martin Sebor via Gcc wrote: > >> On 7/30/21 2:52 PM, Joseph Myers wrote: >>> On Fri, 30 Jul 2021, Aldy Hernandez via Gcc wrote: >>> >>>> There's a new jump threader in GCC which is much more aggressive, and >>>> may trigger latent problems with other warning passes, especially >>>> -Warray-bounds, -Woverflow, and -Wuninitialized. >>>> >>>> Do your problems go away if you take out commit 2e96b5f14e? >>> >>> Reverting that commit fixes all the glibc build failures except for >>> x86_64-linux-gnu, i686-gnu and powerpc64le-linux-gnu. >>> >> >> I just built Glibc for x86_64-linux-gnu with the top of trunk and >> got no unexpected warnings. Can you please share the translation >> units for the files with the warnings? (Or just open GCC bugs for >> them if you believe they're false positives.) > > I still see the same error previously discussed for x86_64-linux-gnu. > Compile the attached file with -O2 -Wall -Werror. > > loadmsgcat.c: In function '_nl_load_domain': > loadmsgcat.c:770:22: error: array subscript 0 is outside array bounds of '__seg_fs struct pthread * __seg_fs[0]' [-Werror=array-bounds] > > As discussed, this is a bug indicating that the code generating that > warning fails to check targetm.addr_space.zero_address_valid to determine > whether zero or small constant addresses are valid in the given address > space. Yes, we know about that one. What I'm asking for is the translation units with the other warnings you showed with the latest GCC (including the threader patches) on the other targets (including i686 and power). I don't have an easy way to create them using my setup. Martin