summaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-08 16:47:16 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-08 16:47:16 +0000
commit9af3ac0113b546822cd96717872415f82ad6f99c (patch)
tree1e79a1491163962860209681965c2843a7072bd1 /gcc/fortran/trans-openmp.c
parentd6ce1997138e6d64599cd7cf9c4eeec3bbf9c6be (diff)
downloadgcc-9af3ac0113b546822cd96717872415f82ad6f99c.tar.gz
PR fortran/45597
* trans-openmp.c (gfc_trans_omp_do): Store exit/cycle labels on code instead of code->block. * gfortran.dg/gomp/pr45597.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164005 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
-rw-r--r--gcc/fortran/trans-openmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/trans-openmp.c b/gcc/fortran/trans-openmp.c
index d1638b68fc3..9c6da71bb01 100644
--- a/gcc/fortran/trans-openmp.c
+++ b/gcc/fortran/trans-openmp.c
@@ -1386,8 +1386,8 @@ gfc_trans_omp_do (gfc_code *code, stmtblock_t *pblock,
/* Put these labels where they can be found later. */
- code->block->cycle_label = cycle_label;
- code->block->exit_label = NULL_TREE;
+ code->cycle_label = cycle_label;
+ code->exit_label = NULL_TREE;
/* Main loop body. */
tmp = gfc_trans_omp_code (code->block->next, true);