https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64152
Bug ID: 64152 Summary: internal compiler error: in gen_add2_insn Product: gcc Version: 4.9.3 Status: UNCONFIRMED Keywords: ra Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target: aarch64 Created attachment 34163 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34163&action=edit preprocessed testcase When compiling the attached testcase with -O -fPIC -fstack-protector -fomit-frame-pointer -mno-lra I get gen/wxe_funcs.cpp:31754:2: internal compiler error: in gen_add2_insn, at optabs.c:4719 0xac23bb gen_add2_insn(rtx_def*, rtx_def*) /space/rguenther/src/svn/gcc-4_9-branch/gcc/optabs.c:4719 0xb1dbd8 gen_reload /space/rguenther/src/svn/gcc-4_9-branch/gcc/reload1.c:8713 0xb23327 emit_input_reload_insns /space/rguenther/src/svn/gcc-4_9-branch/gcc/reload1.c:7669 0xb23327 do_input_reload /space/rguenther/src/svn/gcc-4_9-branch/gcc/reload1.c:7955 0xb23327 emit_reload_insns /space/rguenther/src/svn/gcc-4_9-branch/gcc/reload1.c:8147 0xb23327 reload_as_needed /space/rguenther/src/svn/gcc-4_9-branch/gcc/reload1.c:4665 0xb27800 reload(rtx_def*, int) /space/rguenther/src/svn/gcc-4_9-branch/gcc/reload1.c:1037 0xa2b588 do_reload /space/rguenther/src/svn/gcc-4_9-branch/gcc/ira.c:5469 0xa2b588 rest_of_handle_reload /space/rguenther/src/svn/gcc-4_9-branch/gcc/ira.c:5598 0xa2b588 execute /space/rguenther/src/svn/gcc-4_9-branch/gcc/ira.c:5627 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. this also happens on the 4.8 branch if you backport stack-protector support and without -mno-lra (reload is still the default there). On trunk things have rotted faster and I run into PR64149.