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



------- 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


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