------- Comment #8 from howarth at nitro dot med dot uc dot edu 2010-09-02 05:05 ------- At r163660, the reduced test case (of just the test3 subroutine of sprint-chk.c) triggers the compiler ICE at high frequency on x86-apple-darwin10...
/Users/howarth/darwin_objdir/gcc/xgcc -B/Users/howarth/darwin_objdir/gcc/ -c ./sprintf-chk.i -w -Os -m32 ./sprintf-chk.c:77:1: internal compiler error: in div_data_align, at dwarf2out.c:596 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Since this doesn't backtrace in gdb, I recompiled dwarf2out.c with the patch... Index: gcc/dwarf2out.c =================================================================== --- gcc/dwarf2out.c (revision 163660) +++ gcc/dwarf2out.c (working copy) @@ -592,6 +592,7 @@ div_data_align (HOST_WIDE_INT off) { HOST_WIDE_INT r = off / DWARF_CIE_DATA_ALIGNMENT; + fprintf (stderr, "r = %ld DWARF_CIE_DATA_ALIGNMENT= %d and off= %ld\n",r,DWARF_CIE_DATA_ALIGNMENT,off); gcc_assert (r * DWARF_CIE_DATA_ALIGNMENT == off); return r; } using this I find that the output for a random set of failed compiles is... r = 1 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -4 r = 2 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -8 r = 5 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -20 r = 4 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -16 r = 3 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -12 r = 0 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -2 ./sprintf-chk.c:77:1: internal compiler error: in div_data_align, at dwarf2out.c:596 r = 1 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -4 r = 2 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -8 r = 5 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -20 r = 4 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -16 r = 3 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -12 r = 1 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -7 ./sprintf-chk.c:77:1: internal compiler error: in div_data_align, at dwarf2out.c:596 r = 1 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -4 r = 2 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -8 r = 5 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -20 r = 4 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -16 r = 3 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -12 r = 0 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -3 ./sprintf-chk.c:77:1: internal compiler error: in div_data_align, at dwarf2out.c:596 whereas the non-failing compiles always show... r = 1 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -4 r = 2 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -8 r = 5 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -20 r = 4 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -16 r = 3 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -12 r = 2 DWARF_CIE_DATA_ALIGNMENT= -4 and off= -8 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45484