re PR middle-end/83977 (ICE in simd_clone_clauses_extract, at omp-simd-clone.c:184)
authorJakub Jelinek <jakub@redhat.com>
Wed, 24 Jan 2018 16:28:47 +0000 (17:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 24 Jan 2018 16:28:47 +0000 (17:28 +0100)
commitf1542d9aee3d96366a680a470e2754912f0e8ce7
tree174665a92f7c4715370c978fc58ff9d4a0673587
parent556d3a2433a6e2207c6f36fe292d89d81f46f924
re PR middle-end/83977 (ICE in simd_clone_clauses_extract, at omp-simd-clone.c:184)

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.

From-SVN: r257023
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