re PR middle-end/68762 (link error for inline function decorated with OpenMP declare...
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 8 Aug 2016 19:45:53 +0000 (21:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 8 Aug 2016 19:45:53 +0000 (21:45 +0200)
commitad20058031e8610712a70728a39b6a85edf785df
tree6fb7a102c5418f845c78547f745f742f9cba52bb
parent1c4d457e82695db889b52f62e4d45dec83e1d7f1
re PR middle-end/68762 (link error for inline function decorated with OpenMP declare simd)

PR middle-end/68762
* omp-simd-clone.c: Include varasm.h.
(simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
update function name.

* g++.dg/vect/pr68762-1.cc: New test.
* g++.dg/vect/pr68762-2.cc: New test.
* g++.dg/vect/pr68762.h: New file.

From-SVN: r239248
gcc/ChangeLog
gcc/omp-simd-clone.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/pr68762-1.cc [new file with mode: 0644]
gcc/testsuite/g++.dg/vect/pr68762-2.cc [new file with mode: 0644]
gcc/testsuite/g++.dg/vect/pr68762.h [new file with mode: 0644]