This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g77 in gcc3.4 20030827 miscompiles
- From: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 21 Oct 2003 21:08:17 -0400 (EDT)
- Subject: g77 in gcc3.4 20030827 miscompiles
In doing a few quick benchmarks of the current g77 3.4
from 20030827 on my dual processor G5 (fink is having
trouble autobuilding 20031015 but thats another story),
I ran across a problem with the recommended optimization
flags...
-mcpu=970 -mpowerpc64 -mtune=970 -mpowerpc-gpopt -force_cpusubtype_ALL
If I download the MDBNCH fortran benchmark and second.f timing
routine from...
http://www.fisica.uniud.it/~ercolessi/Mdbnch/info.html#sec21
and build it with...
g77 -O3 -g -mcpu=970 -mpowerpc64 -mtune=970 -mpowerpc-gpopt -force_cpusubtype_ALL A.f
I get a segfault during the run. Unfortunately the current gdb we have
in fink doesn't seem able to backtrace this code. However it seems
that the flag that is triggering the crash is -mpowerpc64. If I
recompile the code with...
g77 -O3 -g -mcpu=970 -mtune=970 -mpowerpc-gpopt -force_cpusubtype_ALL A.f
I don't get the crash when running MDBNCH.
Jack