This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 970917 EH problem in sparc with -O
- To: egcs at cygnus dot com
- Subject: Re: 970917 EH problem in sparc with -O
- From: "Steven J. Madsen" <steve at moonglade dot com>
- Date: Thu, 18 Sep 1997 11:12:39 -0700
- References: <199709180955.LAA15731@peso.labs.trema.com>
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