🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #741

Re: gcc 1.36 and -fwritable-strings

#741
From: Chris Thewalt
Date: Sat, 21 Oct 1989 21:52
16 lines
1317 bytes
In a previous article I wrote:

>   Hello. I am using gcc 1.36 on a MicroVAX running Ultrix 2.2.  I tried
>   to compile the following simple program without the -fwritable strings
>   and get a bus error, but it works with the flag. I don't quite
>   understand this since I am not attempting to write into any string
>   constants. A script of the session follows:

Thanks to the many people who responded and told me that Ultrix'
sscanf (and many other Unix variants) attempts to scribble into the
argument string (faking an ungetc).  
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Christopher Robin Thewalt		These opinions are not necessarily
thewalt@ce.cmu.edu			shared by my employer...
Carnegie Mellon University
Technical Details
Message-ID: <THEWALT.89Oct21175210@RITZ.ce.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pt.cs.cmu.edu!thewalt
References: <THEWALT.89Oct19125053@RITZ.ce.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pt.cs.cmu.edu!thewalt
From: thewalt@RITZ.ce.cmu.edu (Chris Thewalt)
Newsgroups: gnu.gcc.bug
Subject: Re: gcc 1.36 and -fwritable-strings
Message-ID: <THEWALT.89Oct21175210@RITZ.ce.cmu.edu>
Date: 21 Oct 89 21:52:10 GMT
References: <THEWALT.89Oct19125053@RITZ.ce.cmu.edu>
Distribution: gnu
Organization: Dept. of Civil Engineering, Carnegie Mellon University,
 Pittsburgh, PA
Lines: 16
In-reply-to: thewalt@RITZ.ce.cmu.edu's message of 19 Oct 89 16:50:53 GMT