re PR tree-optimization/82374 (#pragma GCC optimize is not applied to openmp-generate...
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Oct 2017 07:50:38 +0000 (09:50 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Oct 2017 07:50:38 +0000 (09:50 +0200)
commit5c38262d95bedc091083cc881d9e21cd1f215a9a
treee7a8605743c6aa3f81e39c7c50e404afff3dab36
parent21375f0ded2dbc4240bd9e3bfcb8f48451ce02b4
re PR tree-optimization/82374 (#pragma GCC optimize is not applied to openmp-generated functions)

PR tree-optimization/82374
* omp-low.c (create_omp_child_function): Copy DECL_ATTRIBUTES,
DECL_FUNCTION_SPECIFIC_OPTIMIZATION,
DECL_FUNCTION_SPECIFIC_TARGET and DECL_FUNCTION_VERSIONED from
current_function_decl to the new decl.

* gcc.dg/gomp/pr82374.c: New test.

From-SVN: r253395
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr82374.c [new file with mode: 0644]