c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.

2015-12-09  Chung-Lin Tang  <cltang@codesourcery.com>

	* c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
	* c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
	* cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.

From-SVN: r231441
This commit is contained in:
Chung-Lin Tang 2015-12-09 07:18:51 +00:00 committed by Chung-Lin Tang
parent b2539e1e8d
commit 04d2fbcc5f
4 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
* c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
* c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
* cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
2015-12-08 Jan Hubicka <hubicka@ucw.cz>
PR ipa/61886

View File

@ -63,7 +63,6 @@ c_finish_oacc_wait (location_t loc, tree parms, tree clauses)
}
stmt = build_call_expr_loc_vec (loc, stmt, args);
add_stmt (stmt);
vec_free (args);

View File

@ -13960,6 +13960,7 @@ c_parser_oacc_wait (location_t loc, c_parser *parser, char *p_name)
strcpy (p_name, " wait");
clauses = c_parser_oacc_all_clauses (parser, OACC_WAIT_CLAUSE_MASK, p_name);
stmt = c_finish_oacc_wait (loc, list, clauses);
add_stmt (stmt);
return stmt;
}

View File

@ -35385,6 +35385,7 @@ cp_parser_oacc_wait (cp_parser *parser, cp_token *pragma_tok)
"#pragma acc wait", pragma_tok);
stmt = c_finish_oacc_wait (loc, list, clauses);
stmt = finish_expr_stmt (stmt);
return stmt;
}