diff options
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/decl.c | 4 | ||||
-rw-r--r-- | gcc/java/java-tree.h | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 7dea6e43f54..bdc0aa7bdaf 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2011-05-07 Eric Botcazou <ebotcazou@adacore.com> + + * java-tree.h (global_bindings_p): Adjust prototype. + * decl.c (global_bindings_p): Return bool. + 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> * expr.c (expand_java_switch): Call build_case_label. diff --git a/gcc/java/decl.c b/gcc/java/decl.c index cb012485d00..47b4ebe8de9 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1302,9 +1302,9 @@ pushdecl_function_level (tree x) return t; } -/* Nonzero if we are currently in the global binding level. */ +/* Return true if we are in the global binding level. */ -int +bool global_bindings_p (void) { return current_binding_level == global_binding_level; diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index e422b4a1557..7743c6e5c82 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -983,7 +983,7 @@ extern tree ident_subst (const char *, int, const char *, int, int, const char *); extern tree identifier_subst (const tree, const char *, int, int, const char *); -extern int global_bindings_p (void); +extern bool global_bindings_p (void); extern tree getdecls (void); extern void pushlevel (int); extern tree poplevel (int,int, int); |