summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2011-05-07 19:58:29 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-05-07 19:58:29 +0000
commitc99c0026305731b71c697a84d82818e28ad8aaaf (patch)
tree67d27c098a1229b2020c6d36424e17ce028e09da /gcc/java
parent1400c8e5013a0901298b3adfeb9c5dbfcef2f494 (diff)
downloadgcc-c99c0026305731b71c697a84d82818e28ad8aaaf.tar.gz
langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to bool and adjust comment.
2011-05-07  Eric Botcazou  <ebotcazou@adacore.com> * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to bool and adjust comment. * fold-const.c (fold_range_test): Adjust call to global_bindings_p. (fold_mathfn_compare): Remove calls to global_bindings_p. (fold_inf_compare): Likewise. * stor-layout.c (variable_size): Adjust call to global_bindings_p. * c-tree.h (global_bindings_p): Adjust prototype. * c-decl.c (global_bindings_p): Return bool and simplify. ada/ * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. cp/ * name-lookup.h (global_bindings_p): Adjust prototype. * name-lookup.c (global_bindings_p): Return bool. fortran/ * f95-lang.c (global_bindings_p): Return bool and simplify. go/ * go-lang.c (global_bindings_p): Return bool and simplify. java/ * java-tree.h (global_bindings_p): Adjust prototype. * decl.c (global_bindings_p): Return bool. lto/ * lto-lang.c (global_bindings_p): Return bool. From-SVN: r173535
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/decl.c4
-rw-r--r--gcc/java/java-tree.h2
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);