aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-06-25 16:38:31 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2015-06-25 16:38:31 +0000
commit0ae9bd2715d973460bbf600ca7371add571e3508 (patch)
treec06da7c9c228125d82710e24882cf0f1975caa4b /gcc/c/c-parser.c
parenteee335102e36d60367366895729a48b1a24fb23c (diff)
downloadgcc-0ae9bd2715d973460bbf600ca7371add571e3508.zip
gcc-0ae9bd2715d973460bbf600ca7371add571e3508.tar.gz
gcc-0ae9bd2715d973460bbf600ca7371add571e3508.tar.bz2
array-notation-common.c: Use VAR_P throughout.
* 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. From-SVN: r224949
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r--gcc/c/c-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c
index f4d18bd..aaf7e32 100644
--- a/gcc/c/c-parser.c
+++ b/gcc/c/c-parser.c
@@ -10365,7 +10365,7 @@ c_parser_oacc_data_clause_deviceptr (c_parser *parser, tree list)
c_parser_omp_var_list_parens() should construct a list of
locations to go along with the var list. */
- if (TREE_CODE (v) != VAR_DECL)
+ if (!VAR_P (v))
error_at (loc, "%qD is not a variable", v);
else if (TREE_TYPE (v) == error_mark_node)
;
@@ -14765,7 +14765,7 @@ c_parser_omp_threadprivate (c_parser *parser)
/* If V had already been marked threadprivate, it doesn't matter
whether it had been used prior to this point. */
- if (TREE_CODE (v) != VAR_DECL)
+ if (!VAR_P (v))
error_at (loc, "%qD is not a variable", v);
else if (TREE_USED (v) && !C_DECL_THREADPRIVATE_P (v))
error_at (loc, "%qE declared %<threadprivate%> after first use", v);