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]

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


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