public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-92002-4-bP5R0m7wOk@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-92002-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92002 --- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Rainer Orth <ro@gcc.gnu.org>: https://gcc.gnu.org/g:fa6092d2cdc654d4b2e018929c0dbe13fbd4ea69 commit r11-7484-gfa6092d2cdc654d4b2e018929c0dbe13fbd4ea69 Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 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 âwide_int wi::max_value(unsigned int, signop)â, inlined from âwide_int wi::max_value(unsigned int, signop)â 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: â<anonymous>.generic_wide_int<wide_int_storage>::<anonymous>.wide_int_storage::val[1]â may be used uninitialized [-Werror=maybe-uninitialized] 335 | return shwi (-1, precision); | ^ [...] In function âwide_int get_nonzero_bits(const_tree)â, inlined from âwide_int get_nonzero_bits(const_tree)â 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: â<anonymous>.generic_wide_int<wide_int_storage>::<anonymous>.wide_int_storage::val[1]â may be used uninitialized [-Werror=maybe-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 <ro@CeBiTec.Uni-Bielefeld.DE> gcc: PR bootstrap/92002 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for -Wuninitialized, -Wmaybe-uninitialized. (wide-int.o-warn): Likewise.
next prev parent reply other threads:[~2021-03-03 15:06 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-92002-4@http.gcc.gnu.org/bugzilla/> 2020-05-07 11:56 ` jakub at gcc dot gnu.org 2020-07-02 6:57 ` ebotcazou at gcc dot gnu.org 2020-07-23 6:51 ` rguenth at gcc dot gnu.org 2021-03-03 15:06 ` cvs-commit at gcc dot gnu.org [this message] 2021-03-03 15:12 ` ro at gcc dot gnu.org 2021-04-08 12:02 ` rguenth at gcc dot gnu.org 2022-06-28 10:38 ` [Bug bootstrap/92002] [10/11/12/13 " jakub at gcc dot gnu.org 2023-07-07 10:36 ` [Bug bootstrap/92002] [11/12/13/14 " rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-92002-4-bP5R0m7wOk@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).