3.3 problem of -fzero-initialized-in-bss w/-ffreestanding
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Mon Jul 14 19:18:00 GMT 2003
> From: "David O'Brien" <obrien@FreeBSD.org>
>
> GCC 3.3 now has -fzero-initialized-in-bss as the default. That is fine
> and dandy for userland programs. But it caused a major problem for the
> FreeBSD kernel when we upgraded from 3.2.2 to 3.3.1 [snapshot].
>
> -no-zero-initialized-in-bss should be the default when -ffreestanding is
> specified -- GCC should not^H^H^Hcannot make assumptions about when BSS
> zeroing occurs in an -ffreestanding environment.
>
> Can this change be made for 3.3.1 release?
> -- David (obrien@FreeBSD.org)
Fine with me if Mark agrees. Assuming we'll do this, do you have a
patch in mind? (We'll probably need slightly different patches for
3.3.1 vs mainline given the recent option handling work.)
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu
More information about the Gcc
mailing list