calls.c (initialize_argument_information): Handle SSA names like decls with a non...
authorMichael Matz <matz@suse.de>
Fri, 1 May 2009 21:53:15 +0000 (21:53 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Fri, 1 May 2009 21:53:15 +0000 (21:53 +0000)
        * calls.c (initialize_argument_information): Handle SSA names
        like decls with a non MEM_P DECL_RTL.

From-SVN: r147044

gcc/ChangeLog
gcc/calls.c

index 0091874ee4e10f4241fe4ba78d20a6bf05d31eac..959f62ac5d4ea3e4d17272f747eb3b63e7847e3e 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-01  Michael Matz  <matz@suse.de>
+
+       * calls.c (initialize_argument_information): Handle SSA names like
+       decls with a non MEM_P DECL_RTL.
+
 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
 
        * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
index c05c2880c7cb34c21b85d9ae0ffa3e00e86da696..219b1d3afa6fa55f391754206e9aa7c7a6c2c567 100644 (file)
@@ -1054,6 +1054,7 @@ initialize_argument_information (int num_actuals ATTRIBUTE_UNUSED,
              || (callee_copies
                  && !TREE_ADDRESSABLE (type)
                  && (base = get_base_address (args[i].tree_value))
+                 && TREE_CODE (base) != SSA_NAME
                  && (!DECL_P (base) || MEM_P (DECL_RTL (base)))))
            {
              /* We can't use sibcalls if a callee-copied argument is