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]

question about snapshot egcs 20 june 2000


Hello,

I tried to compile my chess program with egcs 20 june 2000
and when optimizing code it crashes. I tried other snapshots
and old egcs 2.91 which standard is in redhat 6.1 and it runs
fine.

In core dump i could only see what function it crashed.
As it didn't crash without using optimizations i could not see
what exactly caused the crash.

Adding printf's i didn't figure out much.

It crashes at an initialization function.

Some variables there are volatile, and a lot of loops are after
each other using the same variable.

so like:

   i = 0 ; 
   do { 
     ..
   } while( ++i < 64 );
   for( j = white ; j <= black ; j++ ) {
     ..
     for( i = 0 ; i < 16 ; i++ )
       ..
    

etcetera, many loops/lusses after each other, code is called only
once at initialization of search, so it crashes long before it
starts searching, which is even weirder. It crashes direct after
startup.

Nothing had changed at this initialization code past months,
so i found it weird it crashed there, and the program had been
running 24 hours a day at the internet past 6 months in different
compiles from different compilers (both msvc 6.0 and different
gcc snapshots). Despite that info i
have been checking out my source, but can't find a bug in it,
so i assume it is a bug in the 

Not all compiler switches causes it to crash.

Hope i'm not telling something new here?

Greetings,
Vincent

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