[Bug c/81687] Compiler drops label in OpenMP region
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 15 21:37:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81687
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Sep 15 21:37:16 2017
New Revision: 252858
URL: https://gcc.gnu.org/viewcvs?rev=252858&root=gcc&view=rev
Log:
Backported from mainline
2017-08-09 Jakub Jelinek <jakub@redhat.com>
PR c/81687
* omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
LABEL_DECLs.
* tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
or DECL_NONLOCAL labels.
(move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
or DECL_NONLOCAL labels here.
* testsuite/libgomp.c/pr81687-1.c: New test.
* testsuite/libgomp.c/pr81687-2.c: New test.
Added:
branches/gcc-6-branch/libgomp/testsuite/libgomp.c/pr81687-1.c
branches/gcc-6-branch/libgomp/testsuite/libgomp.c/pr81687-2.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/omp-low.c
branches/gcc-6-branch/gcc/tree-cfg.c
branches/gcc-6-branch/libgomp/ChangeLog
More information about the Gcc-bugs
mailing list