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/name-lookup.c | |
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/name-lookup.c')
-rw-r--r-- | gcc/cp/name-lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |