-O compiling mixed language code seg faults

Jeffrey A Law law@cygnus.com
Sun Feb 1 17:29:00 GMT 1998


  In message < 34D5009C.412EAD18@bob.usuf2.usuhs.mil >you write:
  > 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.
Actually, from the description it could just as easily be a bug
in your code.  You will need to debug it to find out for sure.


jeff



More information about the Gcc mailing list