From: hoffman@xdelta.enet.dec.com.no-spam (Stephen Hoff Hoffman)
Subject: Re: Bug in C compiler?
Date: 1996/09/19 [thread overview]
Message-ID: <51rtb5$f94@usenet.pa.dec.com> (raw)
In-Reply-To: 4buf2zhlw.fsf@ruls41.fsw.LeidenUniv.nl
In article <4buf2zhlw.fsf@ruls41.fsw.LeidenUniv.nl>, vosse@ruls41.fsw.LeidenUniv.nl (Theo Vosse) writes:
:I wrote this piece of program:
:
:static double FillBinomTable(double tab[], int b)
:{
..
:}
:
:which fills a table with binomial probabilities. The problem is that
:when I use DEC's c compiler (with -g), 'factor' becomes 0.707106...,
:which is sqrt(2), whereas when I use gcc, it becomes 1/(2**b). The
:last one is correct.
:
:Is this some kind of optimizer bug?
Please e-mail me with the operating system and version, platform, and
the complete series of DCL or shell commands used to compile and build
the image here, and a *short* standalone copy of the C source to me,
and I'll pass it all along to the appropriate engineering folks.
(From the compiler commands, I'll be able to tell which C compiler
is involved, but -- if applicable -- the C compiler version would
also be useful.)
When e-mailing, note I have munged the headers.
-------------------------- pure personal opinion ---------------------------
Stephen 'Hoff' Hoffman OpenVMS Engineering hoffman@xdelta.enet.dec.com
<Headers deliberately munged to avoid automated junkmail -- the spam-bots.>
OpenVMS Frequently Asked Questions (FAQ): http://www.openvms.digital.com
next prev parent reply other threads:[~1996-09-19 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-19 4:00 Bug in C compiler? Theo Vosse
1996-09-19 4:00 ` Ron Natalie
1996-09-19 4:00 ` Ron Natalie
1996-09-19 4:00 ` Stephen Hoff Hoffman [this message]
1996-09-20 4:00 ` Theo Vosse
1996-09-20 4:00 ` Phil Ottewell
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