This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -O compiling mixed language code seg faults
- To: Robert Williams <bob at bob dot usuf2 dot usuhs dot mil>
- Subject: Re: -O compiling mixed language code seg faults
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 01 Feb 1998 18:31:37 -0700
- cc: egcs list <egcs at cygnus dot com>, goto at statabo dot rim dot or dot jp
- Reply-To: law at cygnus dot com
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