https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44690
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
--- 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;'
--- 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
--- 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