https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85193
Bug ID: 85193 Summary: [7/8 Regression] ICE: SIGSEGV in memory_operand at recog.c:1361 with -O2 -fno-tree-ccp -fno-tree-fre -mno-sse 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 43838 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43838&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -fno-tree-ccp -fno-tree-fre -mno-sse testcase.c -wrapper valgrind,-q testcase.c: In function 'foo': testcase.c:10:1: warning: SSE vector argument without SSE enabled changes the ABI [-Wpsabi] foo(U f) { ^~~ ==18107== Invalid read of size 2 ==18107== at 0xC8C6B4: memory_operand(rtx_def*, machine_mode) (recog.c:1358) ==18107== by 0x12D9756: get_attr_memory(rtx_insn*) (i386.md:2472) ==18107== by 0x1155FAD: ix86_adjust_cost(rtx_insn*, int, rtx_insn*, int, unsigned int) (x86-tune-sched.c:434) ==18107== by 0x16FFB75: dep_cost_1(_dep*, unsigned int) (haifa-sched.c:1493) ==18107== by 0x1701AF9: dep_cost (haifa-sched.c:1509) ==18107== by 0x1701AF9: priority(rtx_insn*) (haifa-sched.c:1660) ==18107== by 0x1701BEE: set_priorities(rtx_insn*, rtx_insn*) (haifa-sched.c:7122) ==18107== by 0xCF7C6D: compute_priorities() (sched-rgn.c:3020) ==18107== by 0xCFB025: schedule_region (sched-rgn.c:3113) ==18107== by 0xCFB025: schedule_insns() [clone .part.41] (sched-rgn.c:3513) ==18107== by 0xCFB87D: schedule_insns (sched-rgn.c:3498) ==18107== by 0xCFB87D: rest_of_handle_sched2 (sched-rgn.c:3737) ==18107== by 0xCFB87D: (anonymous namespace)::pass_sched2::execute(function*) (sched-rgn.c:3873) ==18107== by 0xC39F83: execute_one_pass(opt_pass*) (passes.c:2497) ==18107== by 0xC3A8B7: execute_pass_list_1(opt_pass*) (passes.c:2586) ==18107== by 0xC3A8C9: execute_pass_list_1(opt_pass*) (passes.c:2587) ==18107== Address 0xabababababababab is not stack'd, malloc'd or (recently) free'd ==18107== during RTL pass: sched2 testcase.c:13:1: internal compiler error: Segmentation fault } ^ Please submit a full bug report, with preprocessed source if appropriate. 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-259070-checking-yes-rtl-df-extra-nobootstrap-pr85177-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-259070-checking-yes-rtl-df-extra-nobootstrap-pr85177-amd64 Thread model: posix gcc version 8.0.1 20180404 (experimental) (GCC)