target/5505: Doubts about a patch for OSF

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Mon Feb 25 09:02:00 GMT 2002


Richard B. Kreckel writes:

> Sorry, silly me.  I've attached an old case and that index out of bound
> has been fixed in the real sources ages ago.  However, the crash I see
> seems to have nothing to do with this line!  Modifying the condition such
> that j==0 does not happen still results in a crashing program when
> compiled with -O2 -fno-exceptions and a working program when compiled with
> -O2 alone.  There is an example modified accordingly attached to this
> email and this time I have made sure it also runs with -lefence and stuff.

ok, thanks.

> If you have some time, it would be nice if you could confirm the
> dependence on -fno-exceptions before I start stripping that down.  Thanks!

Indeed: the test program works (i.e. doesn't crash) at -O2 and -O1
-fno-exceptions, but SEGVs at -O2 -fno-exceptions.

	Rainer



More information about the Gcc-bugs mailing list