On 06/24/2015 04:22 AM, Marek Polacek wrote:
This patch makes the C FE use the predicate is_global_var in place of direct

   TREE_STATIC (t) || DECL_EXTERNAL (t)

It should improve readability a bit and make predicates easier to follow.

Bootstrapped/regtested on x86_64-linux, ok for trunk?

2015-06-24  Marek Polacek  <pola...@redhat.com>

        * c-common.c (handle_no_reorder_attribute): Use is_global_var.
        * cilk.c (extract_free_variables): Likewise.

        * c-decl.c: Use is_global_var throughout.
        * c-parser.c: Likewise.
        * c-typeck.c: Likewise.
OK. If you find other places where you can use is_global_var to replace the TREE_STATIC || DECL_EXTERNAL check, consider them pre-approved.

jeff

Reply via email to