[Bug middle-end/25522] zero-initialized constants are place in .bss
geoffk at geoffk dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 23 23:33:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list