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
  • [Bug bootstrap/110698] New: Boo... juergen.reuter at desy dot de via Gcc-bugs

Reply via email to