From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Robert Williams Cc: egcs list , goto@statabo.rim.or.jp Subject: Re: -O compiling mixed language code seg faults Date: Sun, 01 Feb 1998 17:29:00 -0000 Message-id: <27308.886383097@hurl.cygnus.com> References: <34D5009C.412EAD18@bob.usuf2.usuhs.mil> X-SW-Source: 1998-02/msg00039.html 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