diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2009-01-16 13:20:32 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 2009-01-16 13:20:32 +0000 |
commit | c433cb14aed894dabd159e9418fe87358779b121 (patch) | |
tree | 2f99fdb6a63c40507b84805dd86c8c4c90f94c74 /gcc | |
parent | 6e0d2de7cbeacd8cd5b6121fcfaecd4f59edc1da (diff) | |
download | gcc-c433cb14aed894dabd159e9418fe87358779b121.zip gcc-c433cb14aed894dabd159e9418fe87358779b121.tar.gz gcc-c433cb14aed894dabd159e9418fe87358779b121.tar.bz2 |
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
Diffstat (limited to 'gcc')
-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; |