Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* 4.0D/4.0E DEC C optimization bug
@ 1999-04-10  4:00 Joerg Czeranski
  1999-04-12  4:00 ` Bernhard Reiter
  1999-04-13  4:00 ` Jeff Sullivan
  0 siblings, 2 replies; 5+ messages in thread
From: Joerg Czeranski @ 1999-04-10  4:00 UTC (permalink / raw)


Hi,

DEC C V5.6-071 on Digital UNIX V4.0 (Rev. 878),
DEC C V5.7-566 (cc.alt) on Digital UNIX V4.0 (Rev. 878), and
DEC C V5.8-009 on Digital UNIX V4.0 (Rev. 1091)
(I didn't check any others, but AFAIR the same source worked with
the Dec Unix 4.0A compiler)
exhibit a problem compiling sigsetjmp with optimization:

If a local non-volatile automatic variable is written before
the sigsetjmp and read in the "true" branch of "if (sigsetjmp(...))"
but not used elsewhere, the compiler might decide sharing
its location with a different local variable between sigsetjmp
and siglongjmp.

The documentation, the C9X draft, and the Single Unix Spec. say
that such a variable may only have an indeterminant value if it's
written after a setjmp - referring to setjmp/longjmp.

Am I mistaken in assuming the same should apply to sigsetjmp/siglongjmp
or is this a bug?

I found this problem when I compiled the Objective Caml compiler, and
isolated it.
I'll post a source listing that demonstrates it.

joerch



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-04-15  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox