diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-09-08 18:47:16 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-09-08 18:47:16 +0200 |
commit | 7602cb87c64a8e66be536194c5f0747d2f1a38fa (patch) | |
tree | 1e79a1491163962860209681965c2843a7072bd1 /gcc/fortran/trans-openmp.c | |
parent | 9c2934f4d9e90c10d9209b47d0da2221718083d9 (diff) | |
download | gcc-7602cb87c64a8e66be536194c5f0747d2f1a38fa.zip gcc-7602cb87c64a8e66be536194c5f0747d2f1a38fa.tar.gz gcc-7602cb87c64a8e66be536194c5f0747d2f1a38fa.tar.bz2 |
re PR fortran/45597 (ICE: in gfc_trans_cycle, at fortran/trans-stmt.c:4320)
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.
From-SVN: r164005
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
-rw-r--r-- | gcc/fortran/trans-openmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/trans-openmp.c b/gcc/fortran/trans-openmp.c index d1638b6..9c6da71 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); |