diff options
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/go/go-lang.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 6df6597..4136702 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,7 @@ +2011-05-07 Eric Botcazou <ebotcazou@adacore.com> + + * go-lang.c (global_bindings_p): Return bool and simplify. + 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label. diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index 5132e97..84c7f8d 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -308,10 +308,12 @@ go_langhook_builtin_function (tree decl) return decl; } -static int +/* Return true if we are in the global binding level. */ + +static bool go_langhook_global_bindings_p (void) { - return current_function_decl == NULL ? 1 : 0; + return current_function_decl == NULL_TREE; } /* Push a declaration into the current binding level. We can't |