970917 EH problem in sparc with -O

Steven J. Madsen steve@moonglade.com
Thu Sep 18 11:10:00 GMT 1997


On Thu, Sep 18, 1997 at 11:55:38AM +0200, Teemu Torma wrote:
> If the following program is compiled with optimization turned on,
> throwing an exception will cause an infinite loop to exceptions.
> The compiler has Jason's `--pc' patch installed.

This program exhibits similar problems on Linux x86.  -g works fine, but -O
causes it to get stuck in level 2, eventually terminating with a bus error
after 86 iterations (this is repeatable).

I have a related problem, but no sample code, where even -g results in an
infinite loop while throwing an exception.  I'll try to narrow my source
down to a concise example and post it later.

This compiler does not have Jason's "--pc" patch.

-- 
Steve Madsen  <steve@moonglade.com>              PGP key available



More information about the Gcc mailing list