From 9fe2cc05565353eb61325cf3a87f8fc78335d98c Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Wed, 20 Feb 2002 11:53:49 -0800 Subject: 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/java-tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/java/java-tree.h') diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index dc5fd35..8f64ef2 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -1090,7 +1090,7 @@ extern HOST_WIDE_INT java_array_type_length PARAMS ((tree)); extern int read_class PARAMS ((tree)); extern void load_class PARAMS ((tree, int)); -extern tree build_call_or_builtin PARAMS ((tree, tree, tree)); +extern tree check_for_builtin PARAMS ((tree, tree)); extern void initialize_builtins PARAMS ((void)); extern tree lookup_name PARAMS ((tree)); -- cgit v1.1