Bizzare segmentation violation

Andreas Schwab schwab@suse.de
Fri Jun 21 06:01:00 GMT 2002


Tony Bryant <brd@paradise.net.nz> writes:

|> I've a piece of C++ code here that causes an "Internal compiler error: 
|> segmentation violation" when complied with yesterday's mainline GCC. 
|> 
|> Strange thing is that 
|> 
|> "sh-elf-g++ -c mycode.cc"
|> 
|> doesn't work,
|> 
|> but
|> 
|> "sh-elf-g++ -E mycode.cc -o tmp/mycode.cc"
|> "sh-elf-g++ -c tmp/mycode.cc -o mycode.o"
|> 
|> works fine! It runs fine too.

I suspect there is some GC bug.  I have a similar problem on ia64, see
http://gcc.gnu.org/ml/gcc/2002-06/msg01109.html.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc mailing list