builtins.c (check_for_builtin): New function.
authorPer Bothner <per@bothner.com>
Wed, 20 Feb 2002 19:53:49 +0000 (11:53 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 20 Feb 2002 19:53:49 +0000 (11:53 -0800)
commit9fe2cc05565353eb61325cf3a87f8fc78335d98c
treeba65439faed48f14d796ca4d44209a8468a5538e
parentf67e0d112d28a3caf2ea99b67078e6cb8a851fe8
builtins.c (check_for_builtin): New function.

* builtins.c (check_for_builtin):  New function.
(build_call_or_builtin):  Remove.
* java-tree.h:  Update accordingly.
* expr.c (expand_invoke):  Use build + check_for_builtin instead
of build_call_or_builtin.
* parse.y (patch_invoke):  Likewise.  This avoids needlessly creating
a new CALL_EXPR node, which means we don't lose the CALL_USING_SUPER
flag (which had caused jcf-write to incorrectly emit invokevirtual).

From-SVN: r49909
gcc/java/ChangeLog
gcc/java/builtins.c
gcc/java/expr.c
gcc/java/java-tree.h
gcc/java/parse.y