diff options
author | Marek Polacek <polacek@redhat.com> | 2015-10-20 20:46:45 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-10-20 20:46:45 +0000 |
commit | fa60eeb9706dc937fc565b4c6d7fe7efad36c733 (patch) | |
tree | 2573e48cccf51903f26da5491e7c07e051289537 /gcc/c-family/array-notation-common.c | |
parent | 0e993e397753503c774c5b411db231b7a8fa1990 (diff) | |
download | gcc-fa60eeb9706dc937fc565b4c6d7fe7efad36c733.zip gcc-fa60eeb9706dc937fc565b4c6d7fe7efad36c733.tar.gz gcc-fa60eeb9706dc937fc565b4c6d7fe7efad36c733.tar.bz2 |
array-notation-common.c (is_cilkplus_vector_p): Define.
* array-notation-common.c (is_cilkplus_vector_p): Define.
* c-common.h (is_cilkplus_vector_p): Declare.
* c-parser.c (is_cilkplus_vector_p): Don't define here.
* parser.c (is_cilkplus_vector_p): Don't define here.
From-SVN: r229099
Diffstat (limited to 'gcc/c-family/array-notation-common.c')
-rw-r--r-- | gcc/c-family/array-notation-common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-family/array-notation-common.c b/gcc/c-family/array-notation-common.c index 85ded8d..6b55747 100644 --- a/gcc/c-family/array-notation-common.c +++ b/gcc/c-family/array-notation-common.c @@ -676,3 +676,12 @@ fix_sec_implicit_args (location_t loc, vec <tree, va_gc> *list, vec_safe_push (array_operand, (*list)[ii]); return array_operand; } + +/* Returns true if NAME is an IDENTIFIER_NODE with identifier "vector", + "__vector", or "__vector__". */ + +bool +is_cilkplus_vector_p (tree name) +{ + return flag_cilkplus && is_attribute_p ("vector", name); +} |