Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: does char *str="abcd"; alloc addressable memory?
Date: Fri, 10 Jul 2020 08:46:44 -0700
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <867dvbfk4b.fsf@linuxsc.com>
References: <87k0zgbiwt.fsf@nosuchdomain.example.com> <6HCNG.37756$bQ4.31924@fx04.iad> <86fta0fw7j.fsf@linuxsc.com> <87o8oo8s31.fsf@nosuchdomain.example.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="f3890fc58619ed0f56304a9e18958149"; logging-data="23697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+588Eoo03oIZK2NjDuy1vetG4atDX03Ro="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:MnnPgIC9K4js+sWsXpAo93ZAH1A= sha1:w8pjRLDYasGoDQNkIZxviEf6lGY=
Xref: csiph.com comp.lang.c:153180
Keith Thompson writes:
> Tim Rentsch writes:
> [...]
>
>> Much more recently than that, gcc had an option -fwriteable-strings.
>> That option has since been removed, but it was still available in
>> the last ten years or so.
>
> The "-fwritable-strings" option (note spelling),
Right. Either the option was misspelled in one of the sources I
found, or I made a mistake in copying it. Either way thank you
for the followup.
> was removed in 2004.
> The version string for the commit that removed it was
> "3.5.0 20040223 (experimental)".
If the first commit was to an experimental version in 2004, the
feature would still be available in production releases for at
least several years, and probably more than that considering
delays in upgrading distributions, etc. In any case it's still
a lot more recent than the 1980s, and even after C99 was done.