This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/25522] zero-initialized constants are place in .bss



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]