problems with -O2 and sparc-solaris 2.51

Jeffrey A Law law@cygnus.com
Sat Aug 29 21:49:00 GMT 1998


  In message < 4825666F.00507D93.00@nyc-ntgw-n01.ny.jpmorgan.com >you write:
  > Hi,
  >       With 19980824 (and at least a few snapshots earlier), -O2 on sparc
  > Solaris still appears to have problems.  The following results from a
  > compilation of jwz's xscreensaver-2.27 - there's a bus error seemingly
  > in the middle of some innocuous looking floating-point calcs.  Dropping
  > the -O2 causes the problem to go away.
  > 
  > If there's anything useful I could do to help isolate the problem, please
  > let me know.
We just fixed a sparc code gen problem which may fix you problem.  Then
again it might not.

Probably the first thing to do is see why your program stopped.  For
example, did it dereference a null pointer or perform an unaliged load?

"x/i $pc"  when your program stops will show you what instruction was
executing.  Look at the operands via "p <regname>" to see what happened
at the time of the fault.

jeff



More information about the Gcc-bugs mailing list