This is the mail archive of the
mailing list for the GCC project.
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