This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: string variables and literals
- To: Eric Lemings <elemings at uswest dot net>
- Subject: Re: string variables and literals
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 31 Aug 2000 00:58:52 -0300
- Cc: gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <39ADD1B8.F5C9BF24@uswest.net>
On Aug 31, 2000, Eric Lemings <elemings@uswest.net> wrote:
> Just as s3 was initialized with a copy of its string literal,
> shouldn't s4 be intialized with the location of a copy of the string
> literal placed in some arbitrary part of writable memory?
No, it shouldn't. But it might, if someone contributes a patch to
assign strings stored in pointers to non-const char to writable
memory. I don't know how hard it would be to do it.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me