diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/function.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9076ad2..c40950f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-01-16 Richard Earnshaw <rearnsha@arm.com> + + * function.c (aggregate_value_p): Correctly extract the function + type from CALL_EXPR_FN lookup. + 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com> * config/picochip/picochip.c (picochip_override_options): Revert diff --git a/gcc/function.c b/gcc/function.c index 7701042..0cf4d5d 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; |