This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problems with -O2 and sparc-solaris 2.51
- To: "Anthony J Heading" <heading_anthony at jpmorgan dot com>
- Subject: Re: problems with -O2 and sparc-solaris 2.51
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 29 Aug 1998 22:48:51 -0600
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
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