]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument...
authorJason Merrill <jason@redhat.com>
Fri, 14 Nov 2003 22:48:18 +0000 (17:48 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 14 Nov 2003 22:48:18 +0000 (17:48 -0500)
        * function.c (assign_parms): Use TREE_TYPE to determine the real
        type of the argument object.

From-SVN: r73623

gcc/ChangeLog
gcc/function.c

index 44b6690a510023b221e8db3aec99dbfbac6aa60c..0ea19433ed9ee4711d023cc74331494ff1bbd869 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 f191aecbfc4533e931acabf246bc28ae62c86d35..04d34243dff3c83e983d47eeaca6db6f80395e4e 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.  */