This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC generating invalid assembly
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Dan Kegel <dank at kegel dot com>
- Cc: sam124 at operamail dot com, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Sun, 6 Mar 2005 19:37:39 -0500
- Subject: Re: GCC generating invalid assembly
- References: <422B94A0.5010001@kegel.com>
On Mar 6, 2005, at 6:39 PM, Dan Kegel wrote:
sam124@operamail.com wrote:
I compiled unexec.c from Emacs 21.3 with -O2, and I got the error
from GNU as on line 1498:
Fatal error: C_EFCN symbol out of scope
I'm on the x86. This only happens if all three of the following are
satisfied
1) -gcoff debugging information is being generated
2) -funit-at-a-time is on
3) -O is on
Turning off -O caused it to work fine. Turning off -funit-at-a-time
caused it to work fine. Using a diffrent debugging information
format caused it to work fine.
You forgot to say which version of gcc.
Is this maybe http://gcc.gnu.org/PR9963 ?
Also note that -gcoff is not really tested or supported any more,
especially
on elf targets. I would not use it at all. stabs or dwarf-2 is more
supported formats. Dwarf-2 support is also in the current version of
gcc
for cygwin.
-- Pinski