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: 3.3 problem of -fzero-initialized-in-bss w/-ffreestanding


> How does it break Emacs - and what's the workaround?

Emacs uses a PCH-like mechanism that makes assumptions about the layout of 
sections in the image of the executable in memory. This doesn't work anymore 
with GCC 3.3 on at least Solaris 7, 8 and 9.

The workaround is to pass CFLAGS="-g -O2 -fno-zero-initialized-in-bss" to the 
configure script (tested on Solaris 8 and 9).

See http://gcc.gnu.org/PR11386 for the whole story and a pointer to the Emacs 
patch.

-- 
Eric Botcazou


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