public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@physics.uc.edu>
To: gcc mailing list <gcc@gcc.gnu.org>
Subject: CCP and Ada testsuite failure c330001
Date: Mon, 22 Nov 2004 07:27:00 -0000	[thread overview]
Message-ID: <C9A9D144-3C3D-11D9-AEB4-000A95D692F4@physics.uc.edu> (raw)

I decided to look a little into the Ada testsuite failure, c330001.
And I noticed that we are propagating a constant across a
VIEW_CONVERT_EXPR.
Aka before CCP:
   VIEW_CONVERT_EXPR<character[1 .. 2]>(var_1.F.s) = "Hi";
   D.3531_12 = system__secondary_stack__ss_allocate (24);
   D.3530_13 = (struct c330001_0__fullviewdefinite_unknown_disc *) 
D.3531_12;
   VIEW_CONVERT_EXPR<struct 
c330001_0__indef_func_1__var_1___PAD>(*D.3530_13) = var_1;

But afterwards:
   VIEW_CONVERT_EXPR<character[1 .. 2]>(var_1.F.s) = "Hi";
   D.3531_12 = system__secondary_stack__ss_allocate (24);
   D.3530_13 = (struct c330001_0__fullviewdefinite_unknown_disc *) 
D.3531_12;
   VIEW_CONVERT_EXPR<struct 
c330001_0__indef_func_1__var_1___PAD>(*D.3530_13) = "Hi";
   return D.3530_13;

Which seems wrong.  (note the variable is named var_1 and not an
SSA_NAME.

Could someone look into how to fix this?

Thanks,
Andrew Pinski

             reply	other threads:[~2004-11-22  4:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22  7:27 Andrew Pinski [this message]
2004-11-22 13:19 Richard Kenner

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=C9A9D144-3C3D-11D9-AEB4-000A95D692F4@physics.uc.edu \
    --to=pinskia@physics.uc.edu \
    --cc=gcc@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).