Subject: Re: toolchain/22118: make won't compile with -Wcast-qual
To: David Laight <david@l8s.co.uk>
From: Todd Vierling <tv@pobox.com>
List: tech-toolchain
Date: 07/17/2003 16:35:42
On Thu, 17 Jul 2003, David Laight wrote:

: IIRC --writable-strings causes gcc to put strings in the .data instead
: of .rodata.

Yes, -fwritable-strings does just this, and...

: I'm not at all sure it even changes the (impiled) type of the string
: itself.

Such string literals are treated, for expression analysis, as if the type
were "char *" (no const).

-- 
-- Todd Vierling <tv@pobox.com>