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

--- Comment #11 from Toshiro K. Ohsumi <ohsumit at molbio dot mgh.harvard.edu> 
2011-11-15 15:13:04 UTC ---
When compiling an empty program, but with a large include with many templates,
I note that there is a failure at line 1421 on ipa-inline.c.  However, it seems
only to occur when -O2 or -O3 is set.  (Are these the only times inline
optimizations are performed?)  Unfortunately, I do not have a small test case. 
The includes come out to be about 2M in size.  

ohsumit@mothra:~> g++ --version
g++ (GCC) 4.7.0 20111115 (experimental)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ohsumit@mothra:~> g++ -Wall -DDEBUG -ggdb -O3 t1.cpp -o t1
t1.cpp:7:1: internal compiler error: in inline_small_functions, at
ipa-inline.c:1421
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
ohsumit@mothra:~> g++ -Wall -DDEBUG -ggdb -O2 t1.cpp -o t1
t1.cpp:7:1: internal compiler error: in inline_small_functions, at
ipa-inline.c:1421
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
ohsumit@mothra:~> g++ -Wall -DDEBUG -ggdb -O t1.cpp -o t1

Reply via email to