From: jxa@panix.com (John Reinitz)
Subject: Re: horrible "cc -O" bug (DU 3.2c)
Date: 1997/05/12 [thread overview]
Message-ID: <5l7oag$o54@panix2.panix.com> (raw)
In-Reply-To: slrn5nejpr.d7o.adisaacs@supreme.csl.mtu.edu
In article <slrn5nejpr.d7o.adisaacs@supreme.csl.mtu.edu>,
Andy Isaacson <adisaacs@mtu.edu> wrote:
>The USENET cabal made Mark Bartelt <mark@cita.toronto.edu> say:
>>[ Gerald A. Feldman ]
>>
>>>> First of all, from looking at the code, it does not appear to be a code
>>>> generation bug at all. It is only a bug if the code beyond the && would
>>>> cause a side effect, such as invoke a function, modify a variable, or
>>>> cause an exception.
>
>exactly correct, in my opinion. The compiler can do anything it wants, as
>long as the result "looks like" the correct result from the program's
>perspective. (Of course, this could make debugging hard, but that's a
>"quality of implementation" issue.) If the code the compiler generates
>ends up generating the correct results, why should I care how it gets
>there? (By correct results, I include _everything_ observable about the
>program.)
>
Uh... isn't a core dump rather observable?
I would buy your argument if the instruction was executed
but did not trap.
next prev parent reply other threads:[~1997-05-12 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
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 [this message]
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 ` Jeff Sullivan USG
1997-05-12 4:00 ` Peter Kocourek
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