This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37303] const compound initializers in structs are written to .data instead of .rodata
- 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: 1 Oct 2008 17:25:41 -0000
- Subject: [Bug c/37303] const compound initializers in structs are written to .data instead of .rodata
- References: <bug-37303-7274@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 2008-10-01 17:25 -------
>From C99 6.5.2.5/8:
"String literals, and compound literals with const-qualified types, need not
designate distinct objects"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303