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/30622] char *p; p = "str"; puts "str" into rodata



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-01-28 17:13 -------
More to the point, at one time in the past, GCC had an option to turn
(constant) string literals into readwrite strings, that was removed in 4.0.0
(maybe even in 3.4.0).  Also the standard says they are constant string
literals and not just strings.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30622


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