From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,cf4ba3d07912d446 X-Google-Attributes: gid1094ba,public X-Google-Thread: 1164f8,cf4ba3d07912d446 X-Google-Attributes: gid1164f8,public From: Ian Pattie Subject: Re: Mysterious data corruption in Fortran with -automatic Date: 1998/06/05 Message-ID: <35780D53.849F9C05@ibm.net>#1/1 X-Deja-AN: 359853390 Content-Transfer-Encoding: 7bit References: <01bd9013$76f09aa0$6f242499@stupidwin95> <35774C1A.2985A59E@rhea.umd.edu> <01bd9039$7d242ba0$LocalHost@stupidwin95> X-Notice: should be forwarded in their entirety to postmaster@ibm.net MIME-Version: 1.0 Reply-To: idp@ibm.net Content-Type: text/plain; charset=us-ascii X-Trace: 5 Jun 1998 15:23:54 GMT, 166.72.186.70 Organization: IDP Software Newsgroups: comp.sys.dec,comp.lang.fortran Well, I agree with Kevin. Jeffrey must be dealing with some pretty simple codes or something. I can take 10 year old code, compile it with MS FPS (terrible, full of bugs, especially when using automatic) and find optimization bugs, in corrrect code. Lahey LF90 too (they finally just disabled their -o2 flag) and DVF. 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. Kevin G. Rhoads wrote: > Dear Jeffrey: > > All of what you've said boils down to > >you must be writing buggy code< > asserted with > NO justification, based on what was posted > NO reasoning or evidence offered in support > > Would you care to offer some substantive > suggestions, data, or references? > > I fail to see how anyone can reasonable > suggest that when code > compiles cleanly, with neither error NOR WARNING > and produces two wildly different results > depending ONLY on the compiler settings > that it MUST be bugs in the code, > and the compiler is necessarily faultless. > > Are you just flaming? Or do you have some > justification you are not sharing with the rest > of us? > -- > Kevin G. Rhoads, Ph.D. > T_Rhoads@NO_SPAM.Classic.MSN.COM > KRhoads@NO_SPAM.CmpNetMail.com