public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/55935] [OOP] Fortran fronted has ADDR_EXPRs of FUNCTION_DECLs with bogus BLOCK
Date: Fri, 11 Jan 2013 14:56:00 -0000	[thread overview]
Message-ID: <bug-55935-4-aLwG599Kdj@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55935-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-11 14:55:55 UTC ---
Index: tree-ssa-pre.c
===================================================================
--- tree-ssa-pre.c      (revision 195103)
+++ tree-ssa-pre.c      (working copy)
@@ -3246,7 +3246,8 @@ insert_into_preds_of_block (basic_block
       gcc_assert (get_expr_type (ae) == type
                  || useless_type_conversion_p (type, get_expr_type (ae)));
       if (ae->kind == CONSTANT)
-       add_phi_arg (phi, PRE_EXPR_CONSTANT (ae), pred, UNKNOWN_LOCATION);
+       add_phi_arg (phi, unshare_expr (PRE_EXPR_CONSTANT (ae)),
+                    pred, UNKNOWN_LOCATION);
       else
        add_phi_arg (phi, PRE_EXPR_NAME (ae), pred, UNKNOWN_LOCATION);
     }


  parent reply	other threads:[~2013-01-11 14:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 15:37 [Bug fortran/55935] New: " burnus at gcc dot gnu.org
2013-01-10 16:01 ` [Bug fortran/55935] " dominiq at lps dot ens.fr
2013-01-10 16:25 ` dominiq at lps dot ens.fr
2013-01-10 16:29 ` jakub at gcc dot gnu.org
2013-01-10 17:35 ` dominiq at lps dot ens.fr
2013-01-10 22:35 ` dominiq at lps dot ens.fr
2013-01-10 23:11 ` dominiq at lps dot ens.fr
2013-01-11  9:19 ` jakub at gcc dot gnu.org
2013-01-11 10:03 ` jakub at gcc dot gnu.org
2013-01-11 13:36 ` dominiq at lps dot ens.fr
2013-01-11 13:44 ` rguenth at gcc dot gnu.org
2013-01-11 14:06 ` rguenth at gcc dot gnu.org
2013-01-11 14:31 ` rguenth at gcc dot gnu.org
2013-01-11 14:41 ` jakub at gcc dot gnu.org
2013-01-11 14:54 ` rguenth at gcc dot gnu.org
2013-01-11 14:56 ` rguenth at gcc dot gnu.org [this message]
2013-01-13 12:34 ` jakub at gcc dot gnu.org
2013-01-13 16:54 ` jakub 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=bug-55935-4-aLwG599Kdj@http.gcc.gnu.org/bugzilla/ \
    --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).