This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Modification of literal strings
- From: Russ Allbery <rra at stanford dot edu>
- To: "David W. Stockton" <stockton at bcm dot tmc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 04 Nov 2002 19:12:58 -0800
- Subject: Re: Modification of literal strings
- Organization: The Eyrie
- References: <3DC733DB.4040606@bcm.tmc.edu>
David W Stockton <stockton@bcm.tmc.edu> writes:
> I am not sure if I am e-mailing the right place but I just spent about 2
> hours reading FAQs and searching the GCC web-site and cannot find the
> answer I need so I thought I would try sending it to you... if there is
> a more appropriate place please let me know and I will ask there.
I believe gcc-help is a better address for these sorts of questions.
> Is there a compile time option or modification to the specs file to make
> literal not readonly so this code runs on all the platforms?
I think you're looking for -fwritable-strings.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>