[Bug middle-end/44690] -fzero-initialized-in-bss does not work

2021-10-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44690 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/44690] -fzero-initialized-in-bss does not work

2010-07-23 Thread jan dot kratochvil at redhat dot com
--- Comment #3 from jan dot kratochvil at redhat dot com 2010-07-23 11:11 --- (In reply to comment #1) > const int i; -fno-zero-initialized-in-bss -> .bss= FAIL > You need -fno-common also to get it out of the BSS. -fno-common now at least correctly reports: echo 'const int i;'

[Bug middle-end/44690] -fzero-initialized-in-bss does not work

2010-07-21 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-07-21 22:56 --- >const int i = 0;-fzero-initialized-in-bss -> .rodata = FAIL This is correct because it should really be in readonly data section as it is constant. -- pinskia at gcc dot gnu dot org changed: Wha

[Bug middle-end/44690] -fzero-initialized-in-bss does not work

2010-07-21 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-07-21 22:23 --- const int i; -fno-zero-initialized-in-bss -> .bss= FAIL You need -fno-common also to get it out of the BSS. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44690