public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/110698] New: Bootstrap fails with [-Werror=unused-but-set-variable]
@ 2023-07-17  7:41 juergen.reuter at desy dot de
  2023-07-17  7:43 ` [Bug bootstrap/110698] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: juergen.reuter at desy dot de @ 2023-07-17  7:41 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug bootstrap/110698] Bootstrap fails with [-Werror=unused-but-set-variable]
  2023-07-17  7:41 [Bug bootstrap/110698] New: Bootstrap fails with [-Werror=unused-but-set-variable] juergen.reuter at desy dot de
@ 2023-07-17  7:43 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-17  7:43 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 110697 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-17  7:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-17  7:41 [Bug bootstrap/110698] New: Bootstrap fails with [-Werror=unused-but-set-variable] juergen.reuter at desy dot de
2023-07-17  7:43 ` [Bug bootstrap/110698] " pinskia at gcc dot gnu.org

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).