From: Jason Merrill Date: Fri, 14 Nov 2003 22:48:18 +0000 (-0500) Subject: function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument... X-Git-Tag: releases/gcc-3.4.0~2288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f3a6a92f507df4ed682d6b30be109da68e5a730;p=thirdparty%2Fgcc.git function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument object. * function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument object. From-SVN: r73623 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44b6690a5100..0ea19433ed9e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-14 Jason Merrill + + * function.c (assign_parms): Use TREE_TYPE to determine the real + type of the argument object. + 2003-11-14 Kazu Hirata * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first diff --git a/gcc/function.c b/gcc/function.c index f191aecbfc45..04d34243dff3 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. */