https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81687
--- Comment #8 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Author: aldyh Date: Wed Sep 13 16:47:28 2017 New Revision: 252378 URL: https://gcc.gnu.org/viewcvs?rev=252378&root=gcc&view=rev Log: 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/range-gen2/libgomp/testsuite/libgomp.c/pr81687-1.c branches/range-gen2/libgomp/testsuite/libgomp.c/pr81687-2.c Modified: branches/range-gen2/gcc/ChangeLog branches/range-gen2/gcc/omp-low.c branches/range-gen2/gcc/tree-cfg.c branches/range-gen2/libgomp/ChangeLog