public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "schlie at comcast dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/21018] Initializing string literal data improperly marked frame-relative?, should be readonly static const.
Date: Sat, 16 Apr 2005 18:41:00 -0000 [thread overview]
Message-ID: <20050416184147.15053.qmail@sourceware.org> (raw)
In-Reply-To: <20050414064455.21018.schlie@comcast.net>
------- Additional Comments From schlie at comcast dot net 2005-04-16 18:41 -------
Subject: Re: Initializing string literal data
improperly marked frame-relative?, should be readonly static const.
> From: Paul Schlie <schlie@comcast.net>
> Subject: Re: [Bug middle-end/21018] Initializing string literal data
> improperly marked frame-relative?, should be readonly static const.
>
>> Note the C.x variables are not normal VAR_DECLs but CONST_DECL so maybe avr
>> should be changed to recongize them as such.
>
> Actually the problem seems then be that literal string constants aren't
> being consistently defined through CONST_DECL's (just as initializing char
> array data, which are equivalent to string initializers, and all other literal
> and static constants which end up being stored as literal data are); for which
> MEM_READONLY_P allows all memory references to, to be easily identified, which
> seems to be it's intent.
>
> Is there any reason that literal string constant data shouldn't be similarly
> declared and correspondingly identifiable? (or just an oversight?)
I suspect it was likely an artifact of the now depreciated writeable-strings
extension, which previously pretended that literal string constants were not
READONLY after being copied from the executable image into read/write
memory.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21018
next prev parent reply other threads:[~2005-04-16 18:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 6:45 [Bug c/21018] New: initilizing string litteral data improperly maked frame-relative, " schlie at comcast dot net
2005-04-14 7:32 ` [Bug c/21018] Initializing string literal data improperly marked frame-relative?, " schlie at comcast dot net
2005-04-14 7:43 ` schlie at comcast dot net
2005-04-14 14:21 ` [Bug middle-end/21018] " pinskia at gcc dot gnu dot org
2005-04-16 16:45 ` pinskia at gcc dot gnu dot org
2005-04-16 16:46 ` pinskia at gcc dot gnu dot org
2005-04-16 18:22 ` schlie at comcast dot net
2005-04-16 18:41 ` schlie at comcast dot net [this message]
2005-04-19 15:47 ` ericw at evcohs dot com
[not found] <bug-21018-9497@http.gcc.gnu.org/bugzilla/>
2007-11-15 16:19 ` manu at gcc dot gnu dot org
2007-11-15 21:22 ` j at uriah dot heep dot sax dot de
2007-11-16 2:35 ` schlie at comcast dot net
2009-08-05 15:08 ` manu at gcc dot gnu dot org
2010-04-14 20:46 ` tfrancuz at mp dot pl
2010-09-20 16:52 ` eric dot weddington at atmel dot com
[not found] <bug-21018-4@http.gcc.gnu.org/bugzilla/>
2011-08-03 19:41 ` gjl at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050416184147.15053.qmail@sourceware.org \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).