This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc bug
- To: Randolph Wilhoit <wilhoit at trcdec dot tamu dot edu>
- Subject: Re: gcc bug
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 02 May 2000 23:42:47 -0300
- Cc: egcs-bugs at egcs dot cygnus dot com
- Organization: Cygnus Solutions, a Red Hat Company
- References: <390F90A7.274662E6@trcdec.tamu.edu>
On May 2, 2000, Randolph Wilhoit <wilhoit@trcdec.tamu.edu> wrote:
> I am not sure if this behavior would be called a "bug"
It is not a bug, you're just invoking undefined behavior. GCC stores
literal strings in read-only sections unless you compile with
-fwritable-strings.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me