http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56847
Bug #: 56847 Summary: '-fpie' triggers - internal compiler error: in gen_add2_insn, at optabs.c:4705 Classification: Unclassified Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: shen...@google.com System - Ubuntu 12.04 64 bit. GCC configuration - configure --disable-bootstrap --enable-languages='c,c++' How to reproduce - gcc -fpie -c -O2 case.c Error message I got - case.c: In function ‘get_clock’: case.c:20:1: internal compiler error: in gen_add2_insn, at optabs.c:4705 } ^ 0x735e4b gen_add2_insn(rtx_def*, rtx_def*) ../../gcc.svn/gcc-4_8-branch/gcc/optabs.c:4705 0x7037f5 lra_emit_add(rtx_def*, rtx_def*, rtx_def*) ../../gcc.svn/gcc-4_8-branch/gcc/lra.c:313 0x7119a5 curr_insn_transform ../../gcc.svn/gcc-4_8-branch/gcc/lra-constraints.c:3082 0x712224 lra_constraints(bool) ../../gcc.svn/gcc-4_8-branch/gcc/lra-constraints.c:3613 0x705a2a lra(_IO_FILE*) ../../gcc.svn/gcc-4_8-branch/gcc/lra.c:2278 0x6d0820 do_reload ../../gcc.svn/gcc-4_8-branch/gcc/ira.c:4619 0x6d0820 rest_of_handle_reload ../../gcc.svn/gcc-4_8-branch/gcc/ira.c:4731 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.