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

            Bug ID: 101170
           Summary: [12 Regression] ICE in df_ref_record building libgomp
                    for ColdFire
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jsm28 at gcc dot gnu.org
                CC: jason at gcc dot gnu.org
  Target Milestone: ---
            Target: m68k-linux-gnu

Created attachment 51051
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51051&action=edit
preprocessed source

Commit 7232f7c4c2d727431096a7ecfcf4ad4db71dcf2a ("expand: empty class return
optimization [PR88529]") introduces an ICE building libgomp for m68k-linux-gnu
(configure --with-arch=cf --disable-multilib).  Compile the attached test with
-g -O2 (the -g is required):

during RTL pass: reload
/scratch/jmyers/glibc/many12/src/gcc/libgomp/ordered.c: In function
'GOMP_doacross_ull_wait':
/scratch/jmyers/glibc/many12/src/gcc/libgomp/ordered.c:827:1: internal compiler
error: in df_ref_record, at df-scan.c:2598
  827 | }
      | ^
0x851ce2 df_ref_record
        /scratch/jmyers/glibc/many12/src/gcc/gcc/df-scan.c:2598
0x8524bb df_uses_record
        /scratch/jmyers/glibc/many12/src/gcc/gcc/df-scan.c:2859
0x852c78 df_insn_refs_collect
        /scratch/jmyers/glibc/many12/src/gcc/gcc/df-scan.c:3213
0x8560fe df_bb_refs_record(int, bool)
        /scratch/jmyers/glibc/many12/src/gcc/gcc/df-scan.c:3339
0x856674 df_scan_blocks()
        /scratch/jmyers/glibc/many12/src/gcc/gcc/df-scan.c:588
0xabbc1d do_reload
        /scratch/jmyers/glibc/many12/src/gcc/gcc/ira.c:5886
0xabbc1d execute
        /scratch/jmyers/glibc/many12/src/gcc/gcc/ira.c:6008
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

https://sourceware.org/pipermail/libc-testresults/2021q2/008114.html

Reply via email to