From: Richard Earnshaw Date: Fri, 16 Jan 2009 13:20:32 +0000 (+0000) Subject: function.c (aggregate_value_p): Correctly extract the function type from CALL_EXPR_FN... X-Git-Tag: releases/gcc-4.4.0~842 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c433cb14aed894dabd159e9418fe87358779b121;p=thirdparty%2Fgcc.git function.c (aggregate_value_p): Correctly extract the function type from CALL_EXPR_FN lookup. * function.c (aggregate_value_p): Correctly extract the function type from CALL_EXPR_FN lookup. From-SVN: r143432 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9076ad2a425e..c40950ff1de0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-01-16 Richard Earnshaw + + * function.c (aggregate_value_p): Correctly extract the function + type from CALL_EXPR_FN lookup. + 2009-01-16 Hariharan Sandanagobalane * config/picochip/picochip.c (picochip_override_options): Revert diff --git a/gcc/function.c b/gcc/function.c index 7701042c77d2..0cf4d5d00002 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1848,7 +1848,7 @@ aggregate_value_p (const_tree exp, const_tree fntype) fndecl = get_callee_fndecl (fntype); fntype = (fndecl ? TREE_TYPE (fndecl) - : TREE_TYPE (CALL_EXPR_FN (fntype))); + : TREE_TYPE (TREE_TYPE (CALL_EXPR_FN (fntype)))); break; case FUNCTION_DECL: fndecl = fntype;