Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Joerg Czeranski <jc@joerch.org>
Subject: Re: 4.0D/4.0E DEC C optimization bug
Date: 1999/04/15	[thread overview]
Message-ID: <5u8Rt1uwx$76R$1@joerch.org> (raw)
In-Reply-To: 3713880D.ECF3B246@zk3.dec.com

Jeff Sullivan wrote in <3713880D.ECF3B246@zk3.dec.com>:
> The following answer comes from one of our ANSI experts.

[detailed analysis snipped...]

> Workarounds would be to use setjmp instead of sigsetjmp, make the
> variables volatile, or compile -O0 (split lifetime analysis is
> documented as coming on at -O1).

[what the compiler would have to do to prevent the problem...]

> We will look into resolving the above mentioned problem with
> sigsetjmp in future versions of Compaq C.
> 
> Let us know if this helps.
> 
> Thanks,
> -Jeff

I noticed that I couldn't reproduce the problem with setjmp,
and that making it volatile makes it go away, too.

In this case volatile doesn't hurt at all, because the variable
is almost never used.  I sent such a patch to the authors,
and I think it's a good idea to keep it, other compilers might
suffer from the same problem.

Actually some version of gcc is said to have a similar symptom,
SEGV in the same program, but I don't know if that relates to
sigsetjmp, because I couldn't reproduce it.)

I'm very pleased by your fast and competent answer.

joerch



      reply	other threads:[~1999-04-15  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-10  4:00 4.0D/4.0E DEC C optimization bug Joerg Czeranski
1999-04-12  4:00 ` Bernhard Reiter
1999-04-13  4:00   ` Jeff Sullivan
1999-04-13  4:00 ` Jeff Sullivan
1999-04-15  4:00   ` Joerg Czeranski [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox