diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-05-07 19:58:29 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-05-07 19:58:29 +0000 |
commit | c99c0026305731b71c697a84d82818e28ad8aaaf (patch) | |
tree | 67d27c098a1229b2020c6d36424e17ce028e09da /gcc/cp | |
parent | 1400c8e5013a0901298b3adfeb9c5dbfcef2f494 (diff) | |
download | gcc-c99c0026305731b71c697a84d82818e28ad8aaaf.zip gcc-c99c0026305731b71c697a84d82818e28ad8aaaf.tar.gz gcc-c99c0026305731b71c697a84d82818e28ad8aaaf.tar.bz2 |
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/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 4 | ||||
-rw-r--r-- | gcc/cp/name-lookup.h | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 70c7f3e..f56be1d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2011-05-07 Eric Botcazou <ebotcazou@adacore.com> + + * name-lookup.h (global_bindings_p): Adjust prototype. + * name-lookup.c (global_bindings_p): Return bool. + 2011-05-06 Jason Merrill <jason@redhat.com> * decl.c (stabilize_save_expr_r): Set *walk_subtrees as diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index e1cf1cf..3d1c64d 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -1576,9 +1576,9 @@ maybe_push_cleanup_level (tree type) } } -/* 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 global_scope_p (current_binding_level); diff --git a/gcc/cp/name-lookup.h b/gcc/cp/name-lookup.h index bfcac69..4bf253f 100644 --- a/gcc/cp/name-lookup.h +++ b/gcc/cp/name-lookup.h @@ -290,7 +290,7 @@ extern GTY(()) tree global_type_node; extern cxx_scope *leave_scope (void); extern bool kept_level_p (void); -extern int global_bindings_p (void); +extern bool global_bindings_p (void); extern bool toplevel_bindings_p (void); extern bool namespace_bindings_p (void); extern bool template_parm_scope_p (void); |