This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/37303] const compound initializers in structs are written to .data instead of .rodata


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]