]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/52547 (ICE with openmp with nested function which requires...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Apr 2013 17:52:33 +0000 (19:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Apr 2013 17:52:33 +0000 (19:52 +0200)
commitf1e5c27260f3ad45df0012f154dc90b834235aab
treec98a081f1cdede0cee125f3438ab20637accffc1
parentabe852a9953ed39fbd4854acee5ea107a0c8f33b
backport: re PR middle-end/52547 (ICE with openmp with nested function which requires a trampoline)

Backported from mainline
2012-03-22  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/52547
* tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
on any new_local_var_chain vars declared during recursing on
GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.

* testsuite/libgomp.c/pr52547.c: New test.

From-SVN: r197441
gcc/ChangeLog
gcc/tree-nested.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr52547.c [new file with mode: 0644]