------- Comment #14 from hjl dot tools at gmail dot com  2009-01-08 20:04 
-------
This is fixed in 4.4 by IRA:

gnu-3:pts/0[29]> ./xgcc -B./ -O -S /net/gnu-6/export/home/hjl/tmp/gcc_bug.i
-fno-ira
gcc_bug.c: In function ‘main’:
gcc_bug.c:23030: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
gnu-3:pts/0[30]>

When I enable checking in gcc 4.3, I got

[...@gnu-17 gcc]$ ./xgcc -B./ /tmp/gcc_bug.i -S -O -v
Reading specs from ./specs
Target: i686-pc-linux-gnu
Configured with: /net/gnu-13/export/gnu/src/gcc-4.3/gcc/configure
--enable-languages=c --disable-bootstrap --enable-checking
Thread model: posix
gcc version 4.3.3 20090108 (prerelease) [gcc-4_3-branch revision 143188] (GCC) 
COLLECT_GCC_OPTIONS='-B./' '-S' '-O' '-v' '-mtune=generic'
 ./cc1 -fpreprocessed /tmp/gcc_bug.i -quiet -dumpbase gcc_bug.i -mtune=generic
-auxbase gcc_bug -O -version -o gcc_bug.s
GNU C (GCC) version 4.3.3 20090108 (prerelease) [gcc-4_3-branch revision
143188] (i686-pc-linux-gnu)
        compiled by GNU C version 4.3.2 20081105 (Red Hat 4.3.2-7), GMP version
4.2.2, MPFR version 2.3.2.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 98cd2bcb358a704593004b875ff80d57
gcc_bug.c: In function ‘main’:
gcc_bug.c:23030: internal compiler error: in global_alloc, at global.c:438
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[...@gnu-17 gcc]$ 

We had an overflow in max_bitnum and things went downhill after that.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38666

Reply via email to