diff options
author | H.J. Lu <hjl@gcc.gnu.org> | 2009-12-28 08:41:33 -0800 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-12-28 08:41:33 -0800 |
commit | ca50f84ad902ed171c7b27f630f24300c9b2f040 (patch) | |
tree | f1422dd7661cf4233a192be222ae9c9f469a9768 /gcc/omp-low.c | |
parent | f77f39454c7812df2f67dcaa1a26fde8fa3b88ee (diff) | |
download | gcc-ca50f84ad902ed171c7b27f630f24300c9b2f040.zip gcc-ca50f84ad902ed171c7b27f630f24300c9b2f040.tar.gz gcc-ca50f84ad902ed171c7b27f630f24300c9b2f040.tar.bz2 |
Handle GIMPLE_COND in diagnose_sb_2.
gcc/
2009-12-28 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/41344
* omp-low.c (diagnose_sb_2): Handle GIMPLE_COND.
gcc/testsuite/
2009-12-28 H.J. Lu <hongjiu.lu@intel.com>
* gfortran.dg/gomp/pr41344.f: New.
From-SVN: r155487
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 02fea10..3170031 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -6858,6 +6858,27 @@ diagnose_sb_2 (gimple_stmt_iterator *gsi_p, bool *handled_ops_p, wi->info = context; break; + case GIMPLE_COND: + { + tree lab = gimple_cond_true_label (stmt); + if (lab) + { + n = splay_tree_lookup (all_labels, + (splay_tree_key) lab); + diagnose_sb_0 (gsi_p, context, + n ? (gimple) n->value : NULL); + } + lab = gimple_cond_false_label (stmt); + if (lab) + { + n = splay_tree_lookup (all_labels, + (splay_tree_key) lab); + diagnose_sb_0 (gsi_p, context, + n ? (gimple) n->value : NULL); + } + } + break; + case GIMPLE_GOTO: { tree lab = gimple_goto_dest (stmt); |