Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: roy@mchip00.med.nyu.edu (Roy Smith)
Subject: Re: horrible "cc -O" bug (DU 3.2c)
Date: 1997/05/11	[thread overview]
Message-ID: <5l33qi$6fg$1@news.nyu.edu> (raw)
In-Reply-To: 5kvqsu$18d$1@news.iastate.edu


>}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!
>}
>}The implications of this bug are rather staggering; for
>}example, what if expr2 has side-effects?  Gack.

Any compiler code generation bug is "really disturbing".  This has to be any
programmer's worst nightmare.  The thought of doing any kind of software
developent on a compiler that isn't doing 100% rock-solid code generation
gives me the willies.  I can live with slow code.  I can live with missing
language features.  I can live with parsers unable to handle arbitrarily
complex expressions.  But if it compiles, I have to *know* it compiled
correctly.

We're running DU-4.0B on our new alpha boxes.  Is this a problem in the
compiler that ships with that system?  Should I be pointing my ftp
connection at MIT and downloading gcc if I want to be able to sleep nights?

-- 
Roy Smith <roy@popmail.med.nyu.edu>
New York University School of Medicine
Copyright 1997 Roy Smith
For-profit redistribution prohibited



  parent reply	other threads:[~1997-05-11  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 ` John Hascall
1997-05-10  4:00   ` Gerald Feldman
1997-05-11  4:00   ` Roy Smith [this message]
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       ` Jeff Sullivan USG
1997-05-12  4:00       ` Peter Kocourek
1997-05-12  4:00       ` Bob Vickers
1997-05-11  4:00     ` Michael C. Grant
1997-05-09  4:00 ` Jonathan Rozes
     [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