From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ae6d7754224e7cfb X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,ae6d7754224e7cfb X-Google-Attributes: gid1164f8,public From: jxa@panix.com (John Reinitz) Subject: Re: horrible "cc -O" bug (DU 3.2c) Date: 1997/05/12 Message-ID: <5l7oag$o54@panix2.panix.com>#1/1 X-Deja-AN: 241117191 References: <5kvqsu$18d$1@news.iastate.edu> <5l5i98$hbk$1@news.nyu.edu> Organization: Panix Newsgroups: comp.unix.osf.osf1,comp.sys.dec X-Newsposter: trn 4.0-test55 (26 Feb 97) In article , Andy Isaacson wrote: >The USENET cabal made Mark Bartelt 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.