summaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-03 13:03:56 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-03 13:03:56 +0000
commit12d3d5cba5c43adb787525728a8af920f2647800 (patch)
tree969a011521d5e52852f69db9aefe7bab4454aa42 /gcc/gimple.h
parent1dd743ee6755a03d4ffc68286d8e82564c0c1a73 (diff)
downloadgcc-12d3d5cba5c43adb787525728a8af920f2647800.tar.gz
PR c++/37436
* gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has substatements. * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL. * g++.dg/gomp/pr37436.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r--gcc/gimple.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index ca8e64404e2..f8af057dfea 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -1052,6 +1052,7 @@ gimple_has_substatements (gimple g)
case GIMPLE_OMP_TASK:
case GIMPLE_OMP_SECTIONS:
case GIMPLE_OMP_SINGLE:
+ case GIMPLE_OMP_CRITICAL:
case GIMPLE_WITH_CLEANUP_EXPR:
return true;