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

2005-12-25 Thread drepper at redhat dot com
--- Comment #5 from drepper at redhat dot com 2005-12-26 05:52 --- > What happens if you use -fno-common? In this case the variable gets the index of .bss in the symbol table instead of using SHN_COMMON. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25522

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

2005-12-23 Thread geoffk at geoffk 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" <[EMAIL PROTECTED]> writes: > const struct foo f; > > The compiler will mark the variable f in .bss instead of, as the const >

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

2005-12-21 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2005-12-21 19:46 --- Subject: Re: zero-initialized constants are place in .bss On Wed, 21 Dec 2005, pinskia at gcc dot gnu dot org wrote: > Actually no, they are placed in the common section because of ANSI C rules. There is no such

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

2005-12-21 Thread pinskia 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 cons

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

2005-12-21 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-21 19:09 --- .comm f,8,4 Actually no, they are placed in the common section because of ANSI C rules. This is not a bug. -- pinskia at gcc dot gnu dot org changed: What|Removed