From: "Kevin G. Rhoads" <T_Rhoads@NoSpam.CLASSIC.MSN.COM>
Subject: Re: Mysterious data corruption in Fortran with -automatic
Date: 1998/06/05 [thread overview]
Message-ID: <01bd908d$f043b700$LocalHost@stupidwin95> (raw)
In-Reply-To: ublnrcxidr.fsf@heplix2.ikp.physik.tu-darmstadt.de
But this is NOT what the original flamer claimed.
His assertion was that the error MUST be in the code.
That is just as silly as asserting the error MUST be
the compiler.
I did not mean to assert either such silliness.
Although, in response to the ignorant, unhelpful
and totally lacking in substance or information
post made several posts back, I simplified
the reasoning so the flamer could (hopefully)
understand it. In so doing I simplified it to
the point of error -- oversimplified to death.
You now, are guilty of the same:
> If your program gives correct results with optimization *and*
> -noautomatic, then the bug is almost always in the code.
It takes MORE information than just that.
If you had summarized that by asserting that when
-noautomatic or a
global SAVE
make purported optimizer bugs disappear that is
a strong sign of code bugs not optimizer bugs
then I would agree.
But as stated, it is oversimplified and subject to
misinterpretation. Just as was my response to
Jeffrey's flame.
So -- let me make clear --
AFTER the code has been carefully checked
(and more than once)
and preferably after the code has had a review
by other than it's author (not always possible)
and AFTER testing for
uninitialized variables,
non-persistent variables treated as persistent,
parameter list mismatches or
the same variable being passed by reference to two or more
different formal parameters
and, if possible,
after testing the code on multiple platforms with
multiple compilers
then there comes a point when one has a reasonable
expectation that maybe there is a compiler bug and
that eventuality should be tested.
This is NOT the first thing to suspect.
Nor the second or third, but it does go on the
list of possibles!
Jeffery's post assert it NEVER appears on the list
of things to suspect and check, and in replying to
that silliness I oversimplified.
Suspicion of a compiler bug DOES belong in the
list of things to check -- but it should be WAY DOWN
the list.
--
Kevin G. Rhoads, Ph.D.
T_Rhoads@NO_SPAM.Classic.MSN.COM
KRhoads@NO_SPAM.CmpNetMail.com
next prev parent reply other threads:[~1998-06-05 4:00 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-04 4:00 Mysterious data corruption in Fortran with -automatic Keith Refson - real email address in signature
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-04 4:00 ` Jeffrey J. Potoff
1998-06-04 4:00 ` Stuart Brook
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Stuart Brook
1998-06-05 4:00 ` Toon Moene
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Harald Anlauf
1998-06-05 4:00 ` Kevin G. Rhoads [this message]
1998-06-05 4:00 ` Jeffrey J. Potoff
1998-06-05 4:00 ` Keith Refson - real email address in signature
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Robert O'Dowd
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` John Appleyard
1998-06-05 4:00 ` Keith Refson - real email address in signature
1998-06-05 4:00 ` Robert O'Dowd
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Jeffrey J. Potoff
1998-06-05 4:00 ` Stuart Brook
1998-06-08 4:00 ` Paul Winalski
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Catherine Rees Lay
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Thorsten Ohl
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` William Clodius
1998-06-05 4:00 ` William Clodius
1998-06-05 4:00 ` Ian Chivers
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Ian Pattie
1998-06-05 4:00 ` Jeffrey J. Potoff
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-06 4:00 ` Rob Komar
1998-06-04 4:00 ` Thorsten Ohl
1998-06-06 4:00 ` SUMMARY: Code errors which can masquerade as compiler bugs " Kevin G. Rhoads
1998-06-11 4:00 ` Ron Sverdlove x2517
1998-06-08 4:00 ` Steve Lionel
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