https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69031
Bug ID: 69031 Summary: ICE: in hash_rtx_cb, at cse.c:2533 with -fPIC -fselective-scheduling and __builtin_setjmp() 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: --- Host: x86_64-pc-linux-gnu Target: powerpc-unknown-linux-gnu Created attachment 37116 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37116&action=edit reduced testcase Compiler output: $ powerpc-unknown-linux-gnu-gcc -O2 -fPIC -fselective-scheduling testcase.c testcase.c: In function 'foo': testcase.c:8:1: internal compiler error: in hash_rtx_cb, at cse.c:2527 } ^ 0x115ad3b hash_rtx_cb(rtx_def const*, machine_mode, int*, int*, bool, int (*)(rtx_def const*, machine_mode, rtx_def**, machine_mode*)) /repo/gcc-trunk/gcc/cse.c:2527 0x115acd4 hash_rtx_cb(rtx_def const*, machine_mode, int*, int*, bool, int (*)(rtx_def const*, machine_mode, rtx_def**, machine_mode*)) /repo/gcc-trunk/gcc/cse.c:2511 0xada92b vinsn_init /repo/gcc-trunk/gcc/sel-sched-ir.c:1206 0xada92b vinsn_create /repo/gcc-trunk/gcc/sel-sched-ir.c:1237 0xadadf3 init_global_and_expr_for_insn /repo/gcc-trunk/gcc/sel-sched-ir.c:3014 0xad898a sched_scan /repo/gcc-trunk/gcc/sel-sched-ir.c:2801 0xadd601 sel_init_global_and_expr(vec<basic_block_def*, va_heap, vl_ptr>) /repo/gcc-trunk/gcc/sel-sched-ir.c:3033 0xafbf11 sel_region_init /repo/gcc-trunk/gcc/sel-sched.c:6889 0xafbf11 sel_sched_region(int) /repo/gcc-trunk/gcc/sel-sched.c:7613 0xafd9a9 run_selective_scheduling() /repo/gcc-trunk/gcc/sel-sched.c:7699 0xad161d rest_of_handle_sched /repo/gcc-trunk/gcc/sched-rgn.c:3715 0xad161d execute /repo/gcc-trunk/gcc/sched-rgn.c:3825 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. Only this target seems to have this problem. Tested revisions: r231903 - FAIL 5-branch r231870 - FAIL 4_9-branch r231865 - FAIL 4_8-branch r224828 - FAIL