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: "paracelsus at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Feb 2012 00:48:24 +0000
- Subject: [Bug c/37303] const compound initializers in structs are written to .data instead of .rodata
- Auto-submitted: auto-generated
- References: <bug-37303-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303
Dag Ãgren <paracelsus at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paracelsus at gmail dot com
--- Comment #3 from Dag Ãgren <paracelsus at gmail dot com> 2012-02-28 00:48:24 UTC ---
This is still present in 4.6, and it is more severe than a "missed
optimization". It breaks storing data in ROM on microcontrollers, which is very
critical when you have very little RAM.