From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CFB17395BC53; Wed, 3 Mar 2021 15:06:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFB17395BC53 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/92002] [10/11 regression] -Wuninitialized warning in gcc/wide-int.cc Date: Wed, 03 Mar 2021 15:06:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2021 15:06:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92002 --- Comment #16 from CVS Commits --- The master branch has been updated by Rainer Orth : https://gcc.gnu.org/g:fa6092d2cdc654d4b2e018929c0dbe13fbd4ea69 commit r11-7484-gfa6092d2cdc654d4b2e018929c0dbe13fbd4ea69 Author: Rainer Orth Date: Wed Mar 3 16:01:50 2021 +0100 sparcv9: Disable -Wuninitialized warnings breaking bootstrap [PR92002] sparcv9 bootstrap has been broken for 1 1/2 years now by spurious -Wuninitialized warnings: In function =C3=A2wide_int wi::max_value(unsigned int, signop)=C3=A2, inlined from =C3=A2wide_int wi::max_value(unsigned int, signop)=C3= =A2 at /vol/gcc/src/hg/master/local/gcc/wide-int.cc:330:1: /vol/gcc/src/hg/master/local/gcc/wide-int.cc:335:31: error: =C3=A2.generic_wide_int::.wide_int_= storage::val[1]=C3=A2 may be used uninitialized [-Werror=3Dmaybe-uninitialized] 335 | return shwi (-1, precision); | ^ [...] In function =C3=A2wide_int get_nonzero_bits(const_tree)=C3=A2, inlined from =C3=A2wide_int get_nonzero_bits(const_tree)=C3=A2 at /vol/gcc/src/hg/master/local/gcc/tree-ssanames.c:531:1: /vol/gcc/src/hg/master/local/gcc/tree-ssanames.c:544:67: error: =C3=A2.generic_wide_int::.wide_int_= storage::val[1]=C3=A2 may be used uninitialized [-Werror=3Dmaybe-uninitialized] 544 | | (HOST_WIDE_INT) pi->misalign, precision); | = ^ [...] Before we ship yet another release with this issue, I suggest to at least include a workaround of demoting them to warnings. Tested on sparcv9-sun-solaris2.11. 2021-03-03 Rainer Orth gcc: PR bootstrap/92002 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for -Wuninitialized, -Wmaybe-uninitialized. (wide-int.o-warn): Likewise.=