🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50535

Re: modifying string constants

#50535
From: Tony Silva
Date: Tue, 21 Sep 1993 16:54
23 lines
1428 bytes
Jason:

Here's the option you can use for backward compatibility with non-ANSI
C code that modifies string constants (extracted from the gcc info
file):

`-fwritable-strings'
     Store string constants in the writable data segment and don't
     uniquize them.  This is for compatibility with old programs which
     assume they can write into string constants.  `-traditional' also
     has this effect.

     Writing into string constants is a very bad idea; "constants"
					^^^^^^^^^^^^^
     should be constant.
     ^^^^^^^^^^^^^^^^^^
_______________________________________________________________________________

Tony Silva				tel:      (617)890-4200
Atlantic Aerospace Electronics Corp.	FAX:      (617)890-0224
470 Totten Pond Road			Internet: tsilva@aaec.com
Waltham, MA 02154
Technical Details
Message-ID: <9309211501.AA00639@harpo>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!math.ohio-state.edu!cis.ohio-state.edu!harpo.aaec.com!tsilva
References: <1993Sep21.021222.13540@cs.ucla.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8faf186c317d18e0
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-09-21 12:05:13 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!math.ohio-state.edu!cis.ohio-state.edu!harpo.aaec.com!tsilva
From: tsilva@harpo.aaec.com (Tony Silva)
Newsgroups: gnu.gcc.help
Subject: Re: modifying string constants
Date: 21 Sep 1993 12:54:23 -0400
Organization: Gnus Not Usenet
Lines: 23
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9309211501.AA00639@harpo>
References: <1993Sep21.021222.13540@cs.ucla.edu>