diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-07 19:58:29 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-07 19:58:29 +0000 |
commit | 1d2bb6555da06fdaae73c53f9aaa38a688e301cd (patch) | |
tree | 67d27c098a1229b2020c6d36424e17ce028e09da /gcc/langhooks.h | |
parent | f09431f142f803a83ce9555eece5a4238f2be8a6 (diff) | |
download | gcc-1d2bb6555da06fdaae73c53f9aaa38a688e301cd.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173535 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r-- | gcc/langhooks.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h index e0dea01fc9a..89e74f93681 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -148,9 +148,10 @@ struct lang_hooks_for_types struct lang_hooks_for_decls { - /* Returns nonzero if we are in the global binding level. Ada - returns -1 for an undocumented reason used in stor-layout.c. */ - int (*global_bindings_p) (void); + /* Return true if we are in the global binding level. This hook is really + needed only if the language supports variable-sized types at the global + level, i.e. declared outside subprograms. */ + bool (*global_bindings_p) (void); /* Function to add a decl to the current scope level. Takes one argument, a decl to add. Returns that decl, or, if the same |