summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-14 22:48:18 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-14 22:48:18 +0000
commit0d6df611f0d17c476ca08161f5c2205814ab4c78 (patch)
treef14fcd8aa6c1aaaaecf763fc1ebfeb897fe695c2 /gcc/function.c
parentda4947c852ade5471b6d41193f9e4f90584f079d (diff)
downloadgcc-0d6df611f0d17c476ca08161f5c2205814ab4c78.tar.gz
* function.c (assign_parms): Use TREE_TYPE to determine the real
type of the argument object. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73623 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/function.c b/gcc/function.c
index f191aecbfc4..04d34243dff 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4947,13 +4947,13 @@ assign_parms (tree fndecl)
else if (passed_pointer
&& FUNCTION_ARG_CALLEE_COPIES (args_so_far,
- TYPE_MODE (DECL_ARG_TYPE (parm)),
- DECL_ARG_TYPE (parm),
+ TYPE_MODE (TREE_TYPE (passed_type)),
+ TREE_TYPE (passed_type),
named_arg)
- && ! TREE_ADDRESSABLE (DECL_ARG_TYPE (parm)))
+ && ! TREE_ADDRESSABLE (TREE_TYPE (passed_type)))
{
rtx copy;
- tree type = DECL_ARG_TYPE (parm);
+ tree type = TREE_TYPE (passed_type);
/* This sequence may involve a library call perhaps clobbering
registers that haven't been copied to pseudos yet. */