re PR libstdc++/81706 (std::sin vectorization bug)
authorJakub Jelinek <jakub@redhat.com>
Wed, 25 Oct 2017 08:05:58 +0000 (10:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 25 Oct 2017 08:05:58 +0000 (10:05 +0200)
commitbc1a75dda26988781847f00cfc5283eb13418106
tree49aebe92a0ce8de7fe12083ca8885548de051cc4
parent57904e87b934e9dd8f94e9a0c4b3e10f3a4863ec
re PR libstdc++/81706 (std::sin vectorization bug)

PR libstdc++/81706
* attribs.c (attribute_value_equal): Use omp_declare_simd_clauses_equal
for comparison of OMP_CLAUSEs regardless of flag_openmp{,_simd}.
(duplicate_one_attribute, copy_attributes_to_builtin): New functions.
* attribs.h (duplicate_one_attribute, copy_attributes_to_builtin): New
declarations.

* c-decl.c (merge_decls): Copy "omp declare simd" attributes from
newdecl to corresponding __builtin_ if any.

* decl.c (duplicate_decls): Copy "omp declare simd" attributes from
newdecl to corresponding __builtin_ if any.

* gcc.target/i386/pr81706.c: New test.
* g++.dg/ext/pr81706.C: New test.

From-SVN: r254069
gcc/ChangeLog
gcc/attribs.c
gcc/attribs.h
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pr81706.C [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr81706.c [new file with mode: 0644]