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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2005 19:11:12 -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 #2 from pinskia at gcc dot gnu dot org 2005-12-21 19:11 -------
If you really zero initialize them, you get them in the what you expect:
.section .rodata
.align 4
.type f, @object
.size f, 8
f:
.zero 8
-----
Removing the const gets them placed into .bss though (which is correct):
.file "t.c"
.globl f
.bss
.align 4
.type f, @object
.size f, 8
f:
.zero 8
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25522