Article View: gnu.gcc.help
Article #41534Re: gcc fails Paranoia (numeric) test under Linux
From: Harald Anlauf
Date: Mon, 18 Mar 1996 00:00
Date: Mon, 18 Mar 1996 00:00
41 lines
1930 bytes
1930 bytes
>>>>> "Bill" == WE Metzenthen <billm@euler.maths.monash.edu.au> writes:
In article <4idvos$72b@harbinger.cc.monash.edu.au> billm@euler.maths.monash.edu.au (WE Metzenthen) writes:
Bill> Is it really a "real bug"?
[Text about "wide function returns" deleted]
Hi Bill,
many thanks for your reply and bringing a discussion to my attention
that happened before I joined gnu.gcc.help. The reason I believe this
to be a gcc bug is as follows. Even when I insert explicit casts,
save = (double) divby3(dividend);
if (save == (double) divby3(dividend))
and
double divby3(double value)
{
return (double) (value / 3.0);
}
the comparison still fails. I am not aware of any gcc switch that
makes the comparison true. I do not see how a standard conforming C
compiler can ignore these casts.
Cheers,
Harald
--
Ciao,
-ha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Harald Anlauf | Phone: +49-6151-16-2972 (office)
TH Darmstadt | +49-6151-714673 (private)
Institut f. Kernphysik | Fax: +49-6151-16-2421
Schlossgartenstr. 9 | Internet: anlauf@crunch.ikp.physik.th-darmstadt.de
64289 Darmstadt | Harald.Anlauf@cern.ch
Germany | anlauf@slac.stanford.edu
Technical Details
Message-ID:
<ubyboyctk5.fsf@crunch.ikp.physik.th-darmstadt.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4hn916$ejs@news.ccit.arizona.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,fbe8ee8d82a9766b X-Google-Attributes: gid11318c,public X-Google-Thread: 1103af,fbe8ee8d82a9766b X-Google-Attributes: gid1103af,public From: anlauf@crunch.ikp.physik.th-darmstadt.de (Harald Anlauf) Subject: Re: gcc fails Paranoia (numeric) test under Linux Date: 1996/03/18 Message-ID: <ubyboyctk5.fsf@crunch.ikp.physik.th-darmstadt.de> X-Deja-AN: 143221419 sender: anlauf@crunch.ikp.physik.th-darmstadt.de references: <4hn916$ejs@news.ccit.arizona.edu> organization: TH Darmstadt newsgroups: gnu.gcc.help,comp.os.linux.misc