https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83977
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Mar 3 13:18:15 2018 New Revision: 258174 URL: https://gcc.gnu.org/viewcvs?rev=258174&root=gcc&view=rev Log: Backported from mainline 2018-01-24 Jakub Jelinek <ja...@redhat.com> PR middle-end/83977 * tree-inline.c (tree_function_versioning): Remove "omp declare simd" attributes from DECL_ATTRIBUTES (new_decl) without affecting DECL_ATTRIBUTES (old_decl). * 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. Added: branches/gcc-7-branch/gcc/testsuite/c-c++-common/gomp/pr83977-1.c branches/gcc-7-branch/gcc/testsuite/c-c++-common/gomp/pr83977-2.c branches/gcc-7-branch/gcc/testsuite/c-c++-common/gomp/pr83977-3.c branches/gcc-7-branch/gcc/testsuite/gfortran.dg/gomp/pr83977.f90 Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-inline.c