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 | |
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')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/array-notation-common.c | 9 | ||||
-rw-r--r-- | gcc/c-family/c-common.h | 1 | ||||
-rw-r--r-- | gcc/c/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c/c-parser.c | 11 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/parser.c | 11 |
7 files changed, 23 insertions, 22 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index f6f5e7c..46fb924 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,5 +1,10 @@ 2015-10-20 Marek Polacek <polacek@redhat.com> + * array-notation-common.c (is_cilkplus_vector_p): Define. + * c-common.h (is_cilkplus_vector_p): Declare. + +2015-10-20 Marek Polacek <polacek@redhat.com> + * c.opt (std=gnu++11): Do not describe as experimental. (std=gnu++14): Likewise. 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); +} diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index cf44482..4b5cac8 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -1435,6 +1435,7 @@ extern void cilkplus_extract_an_triplets (vec<tree, va_gc> *, size_t, size_t, vec<vec<an_parts> > *); extern vec <tree, va_gc> *fix_sec_implicit_args (location_t, vec <tree, va_gc> *, vec<an_loop_parts>, size_t, tree); +extern bool is_cilkplus_vector_p (tree); /* In cilk.c. */ extern tree insert_cilk_frame (tree); diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 2a083c4..c1dbde6 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,5 +1,9 @@ 2015-10-20 Marek Polacek <polacek@redhat.com> + * c-parser.c (is_cilkplus_vector_p): Don't define here. + +2015-10-20 Marek Polacek <polacek@redhat.com> + PR c/67964 * c-parser.c (c_parser_attributes): Break out of the loop if the token after an attribute isn't a comma. diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index e7b8440..c8c6a2d 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -3848,17 +3848,6 @@ c_parser_attribute_any_word (c_parser *parser) return attr_name; } -/* Returns true of NAME is an IDENTIFIER_NODE with identiifer "vector," - "__vector" or "__vector__." */ - -static inline bool -is_cilkplus_vector_p (tree name) -{ - if (flag_cilkplus && is_attribute_p ("vector", name)) - return true; - return false; -} - #define CILK_SIMD_FN_CLAUSE_MASK \ ((OMP_CLAUSE_MASK_1 << PRAGMA_CILK_CLAUSE_VECTORLENGTH) \ | (OMP_CLAUSE_MASK_1 << PRAGMA_CILK_CLAUSE_LINEAR) \ diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6ffa733..63bb46f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2015-10-20 Marek Polacek <polacek@redhat.com> + + * parser.c (is_cilkplus_vector_p): Don't define here. + 2015-10-19 Jason Merrill <jason@redhat.com> PR c++/67064 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index f07a5e4..cfe5468 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -23225,17 +23225,6 @@ cp_parser_gnu_attributes_opt (cp_parser* parser) return attributes; } -/* Returns true of NAME is an IDENTIFIER_NODE with identiifer "vector," - "__vector" or "__vector__." */ - -static inline bool -is_cilkplus_vector_p (tree name) -{ - if (flag_cilkplus && is_attribute_p ("vector", name)) - return true; - return false; -} - /* Parse a GNU attribute-list. attribute-list: |