-O compiling mixed language code seg faults
Robert Williams
bob@bob.usuf2.usuhs.mil
Sun Feb 1 15:08:00 GMT 1998
System: egcs-980122, axp/RedHat-5.0, 2.1.82 kernel
A main Fortran program that calls a C language subroutine
(via an archive library...C code calls assembler routine in same
library)
seg-faults when compiled with the -O option.
It works fine when compiled with -g , or with -g -O2 (or O3).
Working executables are produced with any -On link option.
Looks like a bug.
--
Bob Williams, http://bob.usuf2.usuhs.mil/
More information about the Gcc
mailing list