From c99c0026305731b71c697a84d82818e28ad8aaaf Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sat, 7 May 2011 19:58:29 +0000 Subject: langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to bool and adjust comment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2011-05-07  Eric Botcazou   * 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/name-lookup.c | 4 ++-- gcc/cp/name-lookup.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'gcc/cp') 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 + + * name-lookup.h (global_bindings_p): Adjust prototype. + * name-lookup.c (global_bindings_p): Return bool. + 2011-05-06 Jason Merrill * 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); -- cgit v1.1