diff options
author | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-13 12:45:53 +0000 |
---|---|---|
committer | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-13 12:45:53 +0000 |
commit | 8640ef1b00883b206d588d51624a1ac6bdfb7d4e (patch) | |
tree | 8fae3934c9a9de85939a96cadcf95782f747c86a /gcc | |
parent | 0748b85de550d4527d1b8d2f7f82b805af9e1ccf (diff) | |
download | gcc-8640ef1b00883b206d588d51624a1ac6bdfb7d4e.tar.gz |
2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com>
* treetree.c (tree_code_get_expression): Call build_function_call_expr
to build function calls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100876 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/treelang/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/treelang/treetree.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index b0d3f002fa2..4932225cf75 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,3 +1,8 @@ +2005-06-12 Rafael ?vila de Esp?ndola <rafael.espindola@gmail.com> + + * treetree.c (tree_code_get_expression): Call build_function_call_expr + to build function calls. + 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * treelang/lex.l, treelang/parse.y: Don't include errors.h and diff --git a/gcc/treelang/treetree.c b/gcc/treelang/treetree.c index d0f6f77be4d..90e1679b829 100644 --- a/gcc/treelang/treetree.c +++ b/gcc/treelang/treetree.c @@ -699,12 +699,10 @@ tree_code_get_expression (unsigned int exp_type, case EXP_FUNCTION_INVOCATION: gcc_assert (op1); { - tree fun_ptr; - TREE_USED (op1) = 1; - fun_ptr = fold_build1 (ADDR_EXPR, - build_pointer_type (TREE_TYPE (op1)), op1); - ret1 = fold_build3 (CALL_EXPR, type, fun_ptr, nreverse (op2), - NULL_TREE); + TREE_USED (op1) = 1; + gcc_assert(TREE_TYPE (TREE_TYPE (op1)) == type); + tree arglist = nreverse(op2); + ret1 = build_function_call_expr(op1, arglist); } break; |