C PATCH to use VAR_P
Jeff Law
law@redhat.com
Wed Jun 24 16:55:00 GMT 2015
On 06/24/2015 06:25 AM, Marek Polacek wrote:
> Similarly to what Gaby did in 2013 for C++
> (<https://gcc.gnu.org/ml/gcc-patches/2013-03/msg01271.html>), this patch
> makes the c/ and c-family/ code use VAR_P rather than
>
> TREE_CODE (t) == VAR_DECL
>
> (This is on top of the previous patch with is_global_var.)
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2015-06-24 Marek Polacek <polacek@redhat.com>
>
> * array-notation-common.c: Use VAR_P throughout.
> * c-ada-spec.c: Likewise.
> * c-common.c: Likewise.
> * c-format.c: Likewise.
> * c-gimplify.c: Likewise.
> * c-omp.c: Likewise.
> * c-pragma.c: Likewise.
> * c-pretty-print.c: Likewise.
> * cilk.c: Likewise.
>
> * c-array-notation.c: Use VAR_P throughout.
> * c-decl.c: Likewise.
> * c-objc-common.c: Likewise.
> * c-parser.c: Likewise.
> * c-typeck.c: Likewise.
I spot checked mostly for VAR_P vs !VAR_P correctness and everything
looked correct. OK for the trunk. Consider any follow-ups to use VAR_P
in a similar way pre-approved.
jeff
More information about the Gcc-patches
mailing list