diff options
author | cltang <cltang@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-12-09 07:18:51 +0000 |
---|---|---|
committer | cltang <cltang@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-12-09 07:18:51 +0000 |
commit | ad9c5157e7d3386aa0d3e5d9a87fda7c4505ac66 (patch) | |
tree | 31ccca0a7742bc5b5d1ed816ac8e2be1d200f88e | |
parent | f5d3c0a6c89a46c5bca677767ce129a78e9edafa (diff) | |
download | gcc-ad9c5157e7d3386aa0d3e5d9a87fda7c4505ac66.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231441 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-family/c-omp.c | 1 | ||||
-rw-r--r-- | gcc/c/c-parser.c | 1 | ||||
-rw-r--r-- | gcc/cp/parser.c | 1 |
4 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5153e2089c7..1a4c3e651f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/c-family/c-omp.c b/gcc/c-family/c-omp.c index e3d41a61b55..cf75a728481 100644 --- a/gcc/c-family/c-omp.c +++ b/gcc/c-family/c-omp.c @@ -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); diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 4611e5b2358..124c30b9939 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -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; } diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 3e90f11dc03..a420cf1eff5 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -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; } |