http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55659
--- Comment #2 from Kazumoto Kojima <kkojima at gcc dot gnu.org> 2012-12-12 07:34:20 UTC --- (In reply to comment #1) > Please provide preprocessed testcase and gcc options, so that this can be > looked at from a cross-compiler. > Very likely md reorg pass does something wrong. A reduced testcase for -g -O2 is void foo (void) { bar (); } I've got a similar failure for the unified arm-elf build: /home/kkojima/kaz/xarm-eabi-combined/combined/libgcc/libgcc2.c: In function '__eprintf': /home/kkojima/kaz/xarm-eabi-combined/combined/libgcc/libgcc2.c:2054:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20748 } ^ 0x82a0dba dwarf2out_var_location /home/kkojima/kaz/xarm-eabi-combined/combined/gcc/dwarf2out.c:20744 0x82a0dba dwarf2out_var_location /home/kkojima/kaz/xarm-eabi-combined/combined/gcc/dwarf2out.c:20632 0x831eb1b final_scan_insn(rtx_def*, _IO_FILE*, int, int, int*) /home/kkojima/kaz/xarm-eabi-combined/combined/gcc/final.c:2215 A reduced testcase for arm-elf with -g -O2 might be more handy: -- struct _on_exit_args { }; typedef struct __sFILE __FILE; struct _reent { __FILE *_stdin, *_stdout, *_stderr; }; extern struct _reent *_impure_ptr ; void __eprintf (const char *string, const char *expression, unsigned int line, const char *filename) { fprintf ((_impure_ptr->_stderr), string, expression, line, filename); abort (); }