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 c/21018] Initializing string literal data improperly marked frame-relative?, should be readonly static const.
Date: Thu, 14 Apr 2005 07:43:00 -0000	[thread overview]
Message-ID: <20050414074331.29796.qmail@sourceware.org> (raw)
In-Reply-To: <20050414064455.21018.schlie@comcast.net>


------- Additional Comments From schlie at comcast dot net  2005-04-14 07:43 -------
(In reply to comment #0)
> resulting tree/rtl:
> 
> showing frame-relative reference to "abcde" initializing data which is wrong:
> 
> (insn 12 11 13 1 (set (reg:HI 44)
>         (symbol_ref/f:HI ("*.LC0") [flags 0x2] <string_cst 0x160b840>)) -1 (nil)
>     (nil))
> 
> showing readonly reference to {'a','b','c','d','e') initializing data which is correct:
> 
> (insn 23 36 24 3 (set (reg:QI 42 [ v.0 ])
>         (mem/v/i:QI (symbol_ref:HI ("v") <var_decl 0x16791b0 v>) [0 v+0 S1 A8])) -1 (nil)
>     (nil))

Sorry more accurately:

Showing frame-relative/non-readonly reference to "abcde" initializing tree/rtl type which is wrong:

(insn 12 11 13 1 (set (reg:HI 44)
        (symbol_ref/f:HI ("*.LC0") [flags 0x2] <string_cst 0x160b840>)) -1 (nil)
    (nil))

(insn 15 35 16 2 (set (reg:QI 0 r0)
        (mem/s:QI (reg:HI 44) [1 S5 A8])) -1 (nil)
    (nil))


Showing readonly reference to {'a','b','c','d','e') initializing data which is correct:

(insn 21 20 22 3 (set (reg:HI 52)
        (symbol_ref:HI ("C.3.1150") [flags 0x2] <var_decl 0x167e438 C.3>)) -1 (nil)
    (nil))

(insn 24 81 25 4 (set (reg:QI 0 r0)
        (mem/s/u:QI (reg:HI 52) [2 C.3+0 S5 A8])) -1 (nil)
    (nil))


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21018


  parent reply	other threads:[~2005-04-14  7:43 UTC|newest]

Thread overview: 9+ 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 [this message]
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
2005-04-19 15:47 ` ericw at evcohs dot com

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=20050414074331.29796.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).