https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83629
Bug ID: 83629 Summary: [7/8 Regression] ICE: in decompose_normal_address, at rtlanal.c:6329 with -O2 -fPIC -frename-registers --param=sched-autopref-queue-depth=nnn Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: powerpc-unknown-linux-gnu Target: powerpc-unknown-linux-gnu Created attachment 42989 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42989&action=edit reduced testcase Similar to PR68834, which is failing in gcc-6 only. Compiler output: $ powerpc-unknown-linux-gnu-gcc -O2 -fPIC -frename-registers --param=sched-autopref-queue-depth=0 testcase.c during RTL pass: sched2 testcase.c: In function 'foo': testcase.c:7:1: internal compiler error: in decompose_normal_address, at rtlanal.c:6329 } ^ 0xbc783b decompose_normal_address /repo/gcc-trunk/gcc/rtlanal.c:6329 0xbc783b decompose_address(address_info*, rtx_def**, machine_mode, unsigned char, rtx_code) /repo/gcc-trunk/gcc/rtlanal.c:6406 0x13f66f2 analyze_set_insn_for_autopref /repo/gcc-trunk/gcc/haifa-sched.c:5535 0x13f8d51 autopref_multipass_init /repo/gcc-trunk/gcc/haifa-sched.c:5621 0x1400056 autopref_rank_for_schedule /repo/gcc-trunk/gcc/haifa-sched.c:5644 0x1400056 rank_for_schedule /repo/gcc-trunk/gcc/haifa-sched.c:2715 0x140049c swap_sort /repo/gcc-trunk/gcc/haifa-sched.c:2818 0x140049c ready_sort_real /repo/gcc-trunk/gcc/haifa-sched.c:3085 0x1409418 schedule_block(basic_block_def**, void*) /repo/gcc-trunk/gcc/haifa-sched.c:6675 0xbd268a schedule_region /repo/gcc-trunk/gcc/sched-rgn.c:3174 0xbd268a schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.c:3513 0xbd2b0d schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.c:3498 0xbd2b0d rest_of_handle_sched2 /repo/gcc-trunk/gcc/sched-rgn.c:3737 0xbd2b0d execute /repo/gcc-trunk/gcc/sched-rgn.c:3873 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. Any value of the --param=sched-autopref-queue-depth=0 param seems to cause the ICE. $ powerpc-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-powerpc/bin/powerpc-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-255981-checking-yes-rtl-df-extra-nographite-powerpc/bin/../libexec/gcc/powerpc-unknown-linux-gnu/8.0.0/lto-wrapper Target: powerpc-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --without-cloog --without-ppl --without-isl --with-sysroot=/usr/powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=powerpc-unknown-linux-gnu --with-ld=/usr/bin/powerpc-unknown-linux-gnu-ld --with-as=/usr/bin/powerpc-unknown-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-255981-checking-yes-rtl-df-extra-nographite-powerpc Thread model: posix gcc version 8.0.0 20171222 (experimental) (GCC)