This is the mail archive of the gcc@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]

Re: Removing -frwitable-strings


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


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