Removing -frwitable-strings
Paul Koning
pkoning@equallogic.com
Thu Dec 18 22:38:00 GMT 2003
>>>>> "Jamie" == Jamie Lokier <jamie@shareable.org> writes:
Jamie> Someone said that -fwritable-strings could be implemented in
Jamie> the front end, but currently it isn't and that adds unwanted
Jamie> code to the back end.
Jamie> Perhaps it's quite a simple change to make string constants
Jamie> have type "char[]" in the C and C++ front ends instead of
Jamie> "const char[]"? (No, I'm not volunteering).
Isn't that already there? -fno-const-strings (at least for C++).
I wonder if it would make sense to remove that, too, especially since
it's already marked as deprecated in the docs.
The docs clearly say that this does NOT make your strings writeable.
paul
More information about the Gcc
mailing list