From 9c3d55b4574044717b64759c0c0c68a705aaf01c Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Fri, 1 May 2009 21:53:15 +0000 Subject: [PATCH] calls.c (initialize_argument_information): Handle SSA names like decls with a non MEM_P DECL_RTL. * calls.c (initialize_argument_information): Handle SSA names like decls with a non MEM_P DECL_RTL. From-SVN: r147044 --- gcc/ChangeLog | 5 +++++ gcc/calls.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0091874..959f62a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-05-01 Michael Matz + + * calls.c (initialize_argument_information): Handle SSA names like + decls with a non MEM_P DECL_RTL. + 2009-05-01 Steven Bosscher * ipa-reference.c: Do not include c-common.h, include splay-tree.h. diff --git a/gcc/calls.c b/gcc/calls.c index c05c288..219b1d3 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -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 -- 2.7.4