Too many if statements crash cc1

J S Hammond jshammond@my-Deja.com
Tue Jun 6 17:03:00 GMT 2000


I am building a cross compiler for a custom
processor using WinNT as the host machine.
This is for compiling only, we use our own
tools for assembling and linking.  The gcc
version is 2.95.

If I put more than 757 if statments in a 
single function cc1 crashes while compiling
and returns a STATUS_ACCESS_VIOLATION as
well as a core file.  It takes half as many
if-else statements to cause this.  I have
tried these programs (and one with many more
if statements) on the native gcc compiler
and those compiled with no errors.  Spreading
the if statements out over multiple functions
makes the compiler happy.

Is there something that I can change in the
cross compiler building that will fix this?

Thanks,

Jeff


--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.


More information about the Gcc mailing list