aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2009-05-01 21:53:15 +0000
committerMichael Matz <matz@gcc.gnu.org>2009-05-01 21:53:15 +0000
commit9c3d55b4574044717b64759c0c0c68a705aaf01c (patch)
tree5745c76598a4ece9daf0c8fe5e7c1cc8932735f8 /gcc/calls.c
parentea264ca5a59323d8cf831cddf4540d1ef1067e22 (diff)
downloadgcc-9c3d55b4574044717b64759c0c0c68a705aaf01c.zip
gcc-9c3d55b4574044717b64759c0c0c68a705aaf01c.tar.gz
gcc-9c3d55b4574044717b64759c0c0c68a705aaf01c.tar.bz2
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
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c1
1 files changed, 1 insertions, 0 deletions
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