problem with gcc-2.95 on Solaris 2.6

Jeffrey A Law law@cygnus.com
Fri Oct 1 00:00:00 GMT 1999


  In message < Pine.GSO.4.05.9908031943440.15288-100000@spock2 >you write:
  > 
  > Hello all,
  > 
  > Just wondering if anyone has seen this one:
  > 
  > Trying to compile gcc-2.95 on Solaris 2.6 using the Sun
  > Workshop 5.0 compiler. The compare phase fails with:
  > 
  > Bootstrap comparison failure!
  > emit-rtl.o differs
  > make[1]: *** [compare] Error 1
  > make[1]: Leaving directory `/tmp/gcc-2.95-objdir/gcc'
  > make: *** [bootstrap] Error 2
  > *** Error code 2
  > make: Fatal error: Command failed for target `all'                         
Nope.  I haven't seen anyone report this problem.

We may need you to do some of the leg work to help figure out what is wrong.
This is most likely a bug in gcc or the Sun compiler, but we won't know 
until we've analyzed the problem back to its source.

The first step is to get a copy of emit-rtl.i that you can feed into the
stage1 and stage2 compilers.

Cut and paste the compile line for last build of emit-rtl.i and add the
"-save-temps" option to it.  That will build emit-rtl.i.

Then do something like:

stage1/cc1 -g -O2 emit-rtl.i -o file1
stage2/cc1 -g -O2 emit-rtl.i -o file2

Then diff the two assembly files.

That should identify a single function that is miscompiled.  Once you've got
that, I'll help you with the next step (identifying where the two compilers
diverge).


  > Q: Is this new compiler built with 4 stages any good? I
  >    will try building some stuff with this compiler
  >    and see how it goes but I thought I should ask
  >    the experts b4 attempting...
It should be fine.  But I'd still like to track down what is causing the
comparison failure to start with.





More information about the Gcc-help mailing list