diff options
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index c0cb7b87488..3034ba339e1 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -523,6 +523,7 @@ make_edges (void) break; case OMP_PARALLEL: + case OMP_TASK: case OMP_FOR: case OMP_SINGLE: case OMP_MASTER: @@ -1936,16 +1937,17 @@ remove_useless_stmts_1 (tree *tp, struct rus_data *data) break; case OMP_PARALLEL: + case OMP_TASK: /* Make sure the outermost BIND_EXPR in OMP_BODY isn't removed as useless. */ - remove_useless_stmts_1 (&BIND_EXPR_BODY (OMP_BODY (*tp)), data); + remove_useless_stmts_1 (&BIND_EXPR_BODY (OMP_TASKREG_BODY (*tp)), data); data->last_goto = NULL; break; case OMP_SECTIONS: case OMP_SINGLE: case OMP_SECTION: - case OMP_MASTER : + case OMP_MASTER: case OMP_ORDERED: case OMP_CRITICAL: remove_useless_stmts_1 (&OMP_BODY (*tp), data); |