This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

The G77 compiler not accurate unless -O3 used


Hi Gnu,

If the -O3 option is used to compile fortran code
using the latest g77 compiler 3.2, then the result
is code that works accurately.  If the options

-frename-registers -finline-functions 

are used with -O2 or with -O then accurate code 
is also created.  However, if no optimization is
used then the options do not help.

How do I know the program is accurate with -O3?
The -O3 results agree with the Lahey compiler
using any Lahey option (or not).

Attached is sample code, a runit.sh script to 
compile and test it.  This same problem is 
manifest on the Linux compiler as well.

John Huddleston


Attachment: f2x3.zip
Description: Zip compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]