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]

Re: -O compiling mixed language code seg faults



  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


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