This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Immediate string incorrectly placed in read only memory
- To: "Tim Beckmann" <tbeckman at edcmail dot cr dot usgs dot gov>
- Subject: Re: Immediate string incorrectly placed in read only memory
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 06 Oct 1999 06:53:30 -0200
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <s7f9c2a4.061@edcmail.cr.usgs.gov>
On Oct 5, 1999, "Tim Beckmann" <tbeckman@edcmail.cr.usgs.gov> wrote:
> The c_getnam routine does not declare the "STAT" parameter to be
> constant.
It doesn't matter. String literals are constant, even though they can
be converted to char*. Look for -fwritable-strings in the docs.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them