OSDN Git Service

* function.c (assign_parms): Use TREE_TYPE to determine the real
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Nov 2003 22:48:18 +0000 (22:48 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Nov 2003 22:48:18 +0000 (22:48 +0000)
        type of the argument object.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73623 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/function.c

index 44b6690..0ea1943 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-14  Jason Merrill  <jason@redhat.com>
+
+       * function.c (assign_parms): Use TREE_TYPE to determine the real
+       type of the argument object.
+
 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
index f191aec..04d3424 100644 (file)
@@ -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.  */