[Bug c/81687] Compiler drops label in OpenMP region
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 16 18:39:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81687
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 16 18:38:53 2017
New Revision: 252885
URL: https://gcc.gnu.org/viewcvs?rev=252885&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-5-branch/libgomp/testsuite/libgomp.c/pr81687-1.c
branches/gcc-5-branch/libgomp/testsuite/libgomp.c/pr81687-2.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/omp-low.c
branches/gcc-5-branch/gcc/tree-cfg.c
branches/gcc-5-branch/libgomp/ChangeLog
More information about the Gcc-bugs
mailing list