https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85430
Bug ID: 85430 Summary: [7/8 Regression] ICE: SIGSEGV in memory_operand at recog.c:1358 with -O2 -fno-tree-ccp -fno-tree-fre Product: gcc Version: 8.0.1 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: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 43959 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43959&action=edit reduced testcase This happens even with PR85193 fixed. Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -fno-tree-ccp -fno-tree-fre testcase.c during RTL pass: sched2 testcase.c: In function 'foo': testcase.c:8:1: internal compiler error: Segmentation fault } ^ 0xd6732f crash_signal /repo/gcc-trunk/gcc/toplev.c:325 0xc8d044 memory_operand(rtx_def*, machine_mode) /repo/gcc-trunk/gcc/recog.c:1358 0x12daa03 get_attr_memory(rtx_insn*) /repo/gcc-trunk/gcc/config/i386/i386.md:2473 0x14f2310 insn_default_latency_generic(rtx_insn*) /repo/gcc-trunk/gcc/config/i386/i386.md:16407 0x16fbbe1 insn_sched_cost(rtx_insn*) /repo/gcc-trunk/gcc/haifa-sched.c:1420 0x17012e6 dep_cost_1(_dep*, unsigned int) /repo/gcc-trunk/gcc/haifa-sched.c:1473 0x17032e9 dep_cost(_dep*) /repo/gcc-trunk/gcc/haifa-sched.c:1509 0x17032e9 priority /repo/gcc-trunk/gcc/haifa-sched.c:1660 0x17033de set_priorities(rtx_insn*, rtx_insn*) /repo/gcc-trunk/gcc/haifa-sched.c:7122 0xcf85bd compute_priorities() /repo/gcc-trunk/gcc/sched-rgn.c:3023 0xcfb995 schedule_region /repo/gcc-trunk/gcc/sched-rgn.c:3116 0xcfb995 schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.c:3516 0xcfc1ed schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.c:3501 0xcfc1ed rest_of_handle_sched2 /repo/gcc-trunk/gcc/sched-rgn.c:3740 0xcfc1ed execute /repo/gcc-trunk/gcc/sched-rgn.c:3876 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-259430-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-259430-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix gcc version 8.0.1 20180417 (experimental) (GCC)