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


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