On Sat, May 7, 2011 at 3:30 PM, Eric Botcazou <ebotca...@adacore.com> wrote:
> Hi,
>
> following the removal of pending sizes and the simplification of variable_size
> this patch changes the return type of the global_bindings_p langhook to bool
> and eliminates 3 calls (out of 4) present in fold-const.c; removing the 4th
> will require further investigation.
>
> Bootstrapped/regtested (all languages) on x86_64-suse-linux, OK for mainline?

The middle-end changes are ok.  I suppose the frontend changes are obvious.

Thanks,
Richard.

>
> 2011-05-07  Eric Botcazou  <ebotca...@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.
>
>
> --
> Eric Botcazou
>

Reply via email to