Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jrozes@gumbo.tcs.tufts.edu (Jonathan Rozes)
Subject: Re: horrible "cc -O" bug (DU 3.2c)
Date: 1997/05/09	[thread overview]
Message-ID: <5kvlj7$k26$1@d2.tufts.edu> (raw)
In-Reply-To: E9wuF5.8JE@utcc.utoronto.ca


In article <E9wuF5.8JE@utcc.utoronto.ca>,
	mark@cita.toronto.edu (Mark Bartelt) writes:
> Someone just called my attention to a really disturbing
> bug in DEC's C compiler.  It seems that if a program is
> compiled with "-O", then evaluation of "expr1 && expr2"
> is botched:  Even when expr1 evaluates to 0, expr2 gets
> evaluated anyway!
>
> [...]
>
> We're running version 3.2c of Digital UNIX.  Can anyone
> tell me whether this bug got fixed in 4.0?

On 3.2g, I got a segfault with -O and -O2, but not -O3. The cc -migrate
compiler worked fine at all optimization levels.

On 4.0b, cc and cc.alt work fine at all optimization levels.

jonathan
-- 
+++ Jonathan Rozes, Unix Systems Administrator, Tufts University
++  jrozes@tcs.tufts.edu, http://rozes.tcs.tufts.edu/
+   Remember, there's a difference between kneeling down and
    bending over --FZ



  reply	other threads:[~1997-05-09  4:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-09  4:00 horrible "cc -O" bug (DU 3.2c) Mark Bartelt
1997-05-09  4:00 ` Jonathan Rozes [this message]
1997-05-09  4:00 ` John Hascall
1997-05-10  4:00   ` Gerald Feldman
1997-05-11  4:00   ` Roy Smith
1997-05-11  4:00     ` Gerald A. Feldman
1997-05-11  4:00       ` Roy Smith
1997-05-12  4:00         ` Mark Bartelt
1997-05-12  4:00           ` Andy Isaacson
1997-05-12  4:00             ` John Reinitz
1997-05-13  4:00             ` Mark Bartelt
1997-05-12  4:00         ` Jeff Sullivan USG
1997-05-12  4:00           ` Gerald A. Feldman
1997-05-12  4:00       ` Bob Vickers
1997-05-12  4:00       ` Peter Kocourek
1997-05-12  4:00       ` Jeff Sullivan USG
1997-05-11  4:00     ` Michael C. Grant
     [not found] ` <5l7hap$7la@usenet.pa.dec.com>
1997-05-12  4:00   ` Gerald A. Feldman
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