This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

g++ 3.3: ICE for source file with more than 524347 lines


Hi folks,

Trying to compile some generated code, we stumbled over this
problem:

--------------------------------------------------------------------------
g++ -v -O -Wno-deprecated  -c -o lib-linux/simulator-O/simulator_funcs.o -I. -I/u/wloka/IMAGE/linux/ccss/include/ simulator_funcs.cxx
Reading specs from /usr/local/stow/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../configure --prefix=/usr/local/stow/gcc-3.3 --with-local-prefix=/usr/local/stow/gcc-3.3 --enable-languages=c,c++,f77 --enable-__cxa_atexit
Thread model: posix
gcc version 3.3
 /usr/local/stow/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/cc1plus -quiet -v -I. -I/u/wloka/IMAGE/linux/ccss/include/ -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE simulator_funcs.cxx -D__GNUG__=3 -quiet -dumpbase simulator_funcs.cxx -auxbase-strip lib-linux/simulator-O/simulator_funcs.o -O -Wno-deprecated -version -o /tmp/cckoDRge.s
GNU C++ version 3.3 (i686-pc-linux-gnu)
	compiled by GNU C version 3.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/stow/gcc-3.3/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /u/wloka/IMAGE/linux/ccss/include
 /usr/local/stow/gcc-3.3/include/c++/3.3
 /usr/local/stow/gcc-3.3/include/c++/3.3/i686-pc-linux-gnu
 /usr/local/stow/gcc-3.3/include/c++/3.3/backward
 /usr/local/stow/gcc-3.3/include
 /usr/local/stow/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/include
 /usr/include
End of search list.
simulator_funcs.cxx: In function `void
   function_p_simulator_M1_M1_M4_M1070(int*, float*)':
simulator_funcs.cxx:4090: warning: passing `float' for argument passing 1 of `
   int eg_shbitvec_wrap_s(int, int)'
:
:
simulator_funcs.cxx: In function `void
   function_p_simulator_M1_M5_M6_M1057(int*, float*)':
simulator_funcs.cxx:509965: warning: passing `float' for argument passing 1 of
   `int eg_shbitvec_wrap_s(int, int)'
simulator_funcs.cxx:509965: warning: argument to `int' from `float'
simulator_funcs.cxx: In function `void*
   init_p_simulator_M1_M5_M6_M1069(eg_instEntry*, eg_transEntry*, eg_symEntry*)
   ':
simulator_funcs.cxx:524347: internal compiler error: in final_scan_insn, at
   final.c:2117
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

--------------------------------------------------------------------------

Seems that 524347 is the maximum number of lines the compiler can
handle. The file to compile is much larger (about 1,500,000 lines).
If we remove '-O' from the command line, then the problem is gone.


Here is the requested data:


System is a RedHat Linux 7.2 machine (using binutils 2.13.2.1,
glibc-2.2.4)

% g++ -v
Reading specs from /usr/local/stow/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../configure --prefix=/usr/local/stow/gcc-3.3 --with-local-prefix=/usr/local/stow/gcc-3.3 --enable-languages=c,c++,f77 --enable-__cxa_atexit
Thread model: posix
gcc version 3.3



Regards

Harri



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]