Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Jeffrey J. Potoff" <jpotoff@rhea.umd.edu>
Subject: Re: Mysterious data corruption in Fortran with -automatic
Date: 1998/06/05	[thread overview]
Message-ID: <35783CAA.C0907F50@rhea.umd.edu> (raw)
In-Reply-To: 35780D53.849F9C05@ibm.net


Ian Pattie wrote:
> 
> Well, I agree with Kevin.  Jeffrey must be dealing with some pretty
> simple codes or something.

I write code in Fortran 90 for the Monte Carlo simulation of a 
variety of fluids.  Most of my work is in the critical behavior
of mixtures.  The codes are not terribly complex (at least not to
me), but can be quite long.  They all compile with whatever
optimization I choose and give me the exact same answers regardless
of optimization level.  All the codes I have written have always 
done that.  If they didn't, I knew there was a bug (almost always 
in memory allocation) in the code.

> 
> I can take 10 year old code, compile it with MS FPS (terrible, full
> of bugs, especially when using automatic)

Microsoft wrote a compiler, is it any suprise you found lots of bugs
in it ?

> and find optimization
> bugs, in corrrect code.  Lahey LF90 too (they finally just disabled
> their -o2 flag) and DVF.
>

Look, I never said that there are *NO* compiler bugs, but in *most*
cases bugs which appear due to higher optimization levels are due
to sloppy written code.
 
> In subroutines with 10 lines or 1000, it doesn't matter.  Five compilers
> will work fine, the 6th will stumble.  Of course your code is the
> first suspect, but in mature code that has worked fine for 10 years
> or so, I usually end up finding an optimization bug.

Worked fine on which platform with what platfrom specific extensions
written around which compiler ?  

Jeff



  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 ` Thorsten Ohl
1998-06-04  4:00 ` Kevin G. Rhoads
1998-06-04  4:00   ` Jeffrey J. Potoff
1998-06-04  4:00     ` Kevin G. Rhoads
1998-06-05  4:00       ` Harald Anlauf
1998-06-05  4:00         ` Kevin G. Rhoads
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           ` John Appleyard
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           ` Stuart Brook
1998-06-05  4:00           ` Jeffrey J. Potoff
1998-06-05  4:00       ` Jeffrey J. Potoff
1998-06-08  4:00       ` Paul Winalski
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       ` William Clodius
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       ` Ian Pattie
1998-06-05  4:00         ` Jeffrey J. Potoff [this message]
1998-06-05  4:00           ` Kevin G. Rhoads
1998-06-06  4:00           ` Rob Komar
1998-06-05  4:00       ` Ian Chivers
1998-06-05  4:00         ` Kevin G. Rhoads
1998-06-04  4:00     ` Kevin G. Rhoads
1998-06-05  4:00       ` Catherine Rees Lay
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