PR middle-end/83977
commit02e955b2f245b91ccc33f6ef5fc20ced17be2b68
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jan 2018 16:28:47 +0000 (24 16:28 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jan 2018 16:28:47 +0000 (24 16:28 +0000)
tree174665a92f7c4715370c978fc58ff9d4a0673587
parentbbf59cee76ccaa9b95921e88697d40a9d17c27ca
PR middle-end/83977
* tree.c (free_lang_data_in_decl): Don't clear DECL_ABSTRACT_ORIGIN
here.
* omp-low.c (create_omp_child_function): Remove "omp declare simd"
attributes from DECL_ATTRIBUTES (decl) without affecting
DECL_ATTRIBUTES (current_function_decl).
* omp-simd-clone.c (expand_simd_clones): Ignore DECL_ARTIFICIAL
functions with non-NULL DECL_ABSTRACT_ORIGIN.

* c-c++-common/gomp/pr83977-1.c: New test.
* c-c++-common/gomp/pr83977-2.c: New test.
* c-c++-common/gomp/pr83977-3.c: New test.
* gfortran.dg/gomp/pr83977.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257023 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/omp-low.c
gcc/omp-simd-clone.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr83977-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/pr83977-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/pr83977-3.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr83977.f90 [new file with mode: 0644]
gcc/tree.c