* 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
+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.
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);
+}
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);
+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
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) \
+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
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: