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

            Bug ID: 70083
           Summary: [6 Regression] ICE: in assign_stack_local_1, at
                    function.c:409 with -fschedule-insns @ i686
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
            Target: i686-pc-linux-gnu

Created attachment 37868
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37868&action=edit
reduced testcase

I am getting this ICE with various testcases and compiler flags, and -O2
-fschedule-insns seems to be the common subset.

Compiler output:
$ i686-pc-linux-gnu-gcc -O2 -fno-dce -fschedule-insns
-fno-sched-critical-path-heuristic -mavx512dq --param=max-cse-insns=1
testcase.c
testcase.c: In function 'foo':
testcase.c:17:1: internal compiler error: in assign_stack_local_1, at
function.c:409
 }
 ^
0x897928 assign_stack_local_1(machine_mode, long, int, int)
        /repo/gcc-trunk/gcc/function.c:406
0xa1ef81 assign_mem_slot
        /repo/gcc-trunk/gcc/lra-spills.c:159
0xa1ef81 lra_spill()
        /repo/gcc-trunk/gcc/lra-spills.c:590
0x9f6397 lra(_IO_FILE*)
        /repo/gcc-trunk/gcc/lra.c:2376
0x99def9 do_reload
        /repo/gcc-trunk/gcc/ira.c:5396
0x99def9 execute
        /repo/gcc-trunk/gcc/ira.c:5580
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ i686-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-i686/bin/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-233940-checking-yes-rtl-df-nographite-i686/bin/../libexec/gcc/i686-pc-linux-gnu/6.0.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=i686-pc-linux-gnu --with-ld=/usr/bin/i686-pc-linux-gnu-ld
--with-as=/usr/bin/i686-pc-linux-gnu-as --with-sysroot=/usr/i686-pc-linux-gnu
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-233940-checking-yes-rtl-df-nographite-i686
Thread model: posix
gcc version 6.0.0 20160303 (experimental) (GCC)

Reply via email to