This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
3.3 problem of -fzero-initialized-in-bss w/-ffreestanding
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: gcc at gcc dot gnu dot org
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 14 Jul 2003 10:32:01 -0700
- Subject: 3.3 problem of -fzero-initialized-in-bss w/-ffreestanding
- Organization: The NUXI BSD Group
- Reply-to: obrien at FreeBSD dot 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)