This is the mail archive of the gcc@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]

Too many if statements crash cc1


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.

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