Add __attribute__((__simd__)) to GCC.
authorKirill Yukhin <kirill.yukhin@intel.com>
Mon, 16 Nov 2015 13:14:57 +0000 (13:14 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Mon, 16 Nov 2015 13:14:57 +0000 (13:14 +0000)
commitfff7721799b3bf7cabbcdf1096eeab18b68ef5d3
tree5731243bcaf252b767216c4d28809a9959258645
parent56b08a5894fd02a502b2b40897a2aa892f70caec
Add __attribute__((__simd__)) to GCC.

gcc/
* omp-low.c (pass_omp_simd_clone::gate): If target allows - call
without additional conditions.
* doc/extend.texi (@item simd): New.
gcc/c-family/
* c-common.c (handle_simd_attribute): New.
(struct attribute_spec): Add entry for "simd".
(handle_simd_attribute): New.
gcc/c/
* c-parser.c (c_finish_omp_declare_simd): Look for
"simd" attribute as well. Update error message.
gcc/cp/
* parser.c (cp_parser_late_parsing_cilk_simd_fn_info): Look for
"simd" attribute as well. Update error message.
gcc/testsuite/
* c-c++-common/attr-simd.c: New test.
* c-c++-common/attr-simd-2.c: New test.
* c-c++-common/attr-simd-3.c: New test.

From-SVN: r230422
13 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/doc/extend.texi
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attr-simd-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/attr-simd-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/attr-simd.c [new file with mode: 0644]