public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/110698] New: Bootstrap fails with [-Werror=unused-but-set-variable]
Date: Mon, 17 Jul 2023 07:41:09 +0000	[thread overview]
Message-ID: <bug-110698-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110698

            Bug ID: 110698
           Summary: Bootstrap fails with [-Werror=unused-but-set-variable]
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

This seems to be a very recent problem: last week (as of July 10) the bootstrap
did still work with the gcc master, and now it is failing, cf. below.
That should be pretty easy to find.

#11 3096.5 /usr/src/gcc/gcc/expmed.cc: In function 'rtx_def*
extract_bit_field_1(rtx, poly_uint64, poly_uint64, int, rtx, machine_mode,
machine_mode, bool, bool, rtx_def**)':
#11 3096.5 /usr/src/gcc/gcc/expmed.cc:1838:45: warning: '*(unsigned
int*)((char*)&imode + offsetof(scalar_int_mode, scalar_int_mode::m_mode))' may
be used uninitialized [-Wmaybe-uninitialized]
#11 3096.5  1838 |       rtx sub = extract_bit_field_as_subreg (mode1, op0,
imode,
#11 3096.5       |                
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
#11 3096.5  1839 |                                              bitsize,
bitnum);
#11 3096.5       |                                             
~~~~~~~~~~~~~~~~
#11 3096.5 /usr/src/gcc/gcc/expmed.cc:1798:19: note: '*(unsigned
int*)((char*)&imode + offsetof(scalar_int_mode, scalar_int_mode::m_mode))' was
declared here
#11 3096.5  1798 |   scalar_int_mode imode;
#11 3096.5       |                   ^~~~~
#11 3754.2 /usr/src/gcc/gcc/tree-ssa-loop-ivcanon.cc: In function 'bool
try_peel_loop(loop*, edge, tree, bool, long int)':
#11 3754.2 /usr/src/gcc/gcc/tree-ssa-loop-ivcanon.cc:1170:17: error: variable
'entry_count' set but not used [-Werror=unused-but-set-variable]
#11 3754.2  1170 |   profile_count entry_count = profile_count::zero ();
#11 3754.2       |                 ^~~~~~~~~~~
#11 3758.5 cc1plus: all warnings being treated as errors

             reply	other threads:[~2023-07-17  7:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-17  7:41 juergen.reuter at desy dot de [this message]
2023-07-17  7:43 ` [Bug bootstrap/110698] " pinskia 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-110698-4@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: link
Be 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).