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]
Other format: [Raw text]

Re: GCC generating invalid assembly



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


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