aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/builtins.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/builtins.c')
-rw-r--r--gcc/java/builtins.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c
index 2aec8fd..1e388d8 100644
--- a/gcc/java/builtins.c
+++ b/gcc/java/builtins.c
@@ -70,7 +70,7 @@ static tree sqrt_builtin (tree, tree);
static tree java_build_function_call_expr (tree, tree);
static void define_builtin (enum built_in_function, const char *,
- enum built_in_class, tree, int);
+ enum built_in_class, tree, int, int);
static tree define_builtin_type (int, int, int, int, int);
@@ -189,7 +189,8 @@ define_builtin (enum built_in_function val,
const char *name,
enum built_in_class class,
tree type,
- int fallback_p)
+ int fallback_p,
+ int implicit)
{
tree decl;
@@ -209,6 +210,8 @@ define_builtin (enum built_in_function val,
DECL_BUILT_IN_CLASS (decl) = class;
DECL_FUNCTION_CODE (decl) = val;
built_in_decls[val] = decl;
+ if (implicit)
+ implicit_built_in_decls[val] = decl;
}
/* Compute the type for a builtin. */
@@ -306,8 +309,8 @@ initialize_builtins (void)
#include "builtin-types.def"
#define DEF_BUILTIN(ENUM, NAME, CLASS, TYPE, LIBTYPE, BOTH_P, \
- FALLBACK_P, NONANSI_P, ATTRS) \
- define_builtin (ENUM, NAME, CLASS, builtin_types[TYPE], FALLBACK_P);
+ FALLBACK_P, NONANSI_P, ATTRS, IMPLICIT) \
+ define_builtin (ENUM, NAME, CLASS, builtin_types[TYPE], FALLBACK_P, IMPLICIT);
#include "builtins.def"
}