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

            Bug ID: 90873
           Summary: [10 regression] -Wmaybe-uninitialized warning in
                    gcc/tree-ssa-forwprop.c breaks 32-bit bootstrap
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
              Host: i386-pc-solaris2.11, sparc-sun-solaris2.11
            Target: i386-pc-solaris2.11, sparc-sun-solaris2.11
             Build: i386-pc-solaris2.11, sparc-sun-solaris2.11

Between 20190612 (r272223) and 20190613 (r272247), 32-bit bootstrap got broken
on Solaris/x86 and Solaris/SPARC:

/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-forwprop.c: In function 'bool
simplify_rotate(gimple_stmt_iterator*)':
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-forwprop.c:1650:40: error:
'#'target_mem_ref' not supported by dump_expr#<expression error>' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
 1650 |      if (cdef_arg2[i] == def_arg2[1 - i]
      |                          ~~~~~~~~~~~~~~^
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-forwprop.c:1695:28: error:
'#'target_mem_ref' not supported by dump_expr#<expression error>' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
 1695 |   if (tem == def_arg2[1 - i] || tem == def_arg2_alt[1 - i])
      |              ~~~~~~~~~~~~~~^
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-forwprop.c:1718:22: error:
'#'target_mem_ref' not supported by dump_expr#<expression error>' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
 1718 |   if (cdef_code[1 - i] == BIT_AND_EXPR
      |       ~~~~~~~~~~~~~~~^
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-forwprop.c:1719:43: error:
'#'target_mem_ref' not supported by dump_expr#<expression error>' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
 1719 |       && tree_fits_shwi_p (cdef_arg2[1 - i])
      |                            ~~~~~~~~~~~~~~~^
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-forwprop.c:1722:36: error:
'#'target_mem_ref' not supported by dump_expr#<expression error>' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
 1722 |       && TREE_CODE (cdef_arg1[1 - i]) == SSA_NAME)
      |                                    ^

A amd64-pc-solaris2.11 bootstrap is already running make check, but
sparcv9-sun-solaris2.11 bootstrap breaks later building the 32-bit libgomp:

#‘target_mem_ref’ not supported by
expression#’/vol/gcc/src/hg/trunk/local/libgomp/ordered.c: In function
‘gomp_doacross_ull_init’:
/vol/gcc/src/hg/trunk/local/libgomp/ordered.c:607:23: error:  may be used
uninitialized in this function [-Werror=maybe-uninitialized]
  607 |    shift_count += bits[i - 1];
      |                   ~~~~^~~~~~~

Reply via email to