This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25522] zero-initialized constants are place in .bss
- From: "geoffk at geoffk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2005 23:33:34 -0000
- Subject: [Bug middle-end/25522] zero-initialized constants are place in .bss
- References: <bug-25522-700@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from geoffk at geoffk dot org 2005-12-23 23:33 -------
Subject: Re: New: zero-initialized constants are place in .bss
"drepper at redhat dot com" <gcc-bugzilla@gcc.gnu.org> writes:
> const struct foo f;
>
> The compiler will mark the variable f in .bss instead of, as the const
> indicates, into .rodata.
What happens if you use -fno-common?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25522