aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2015-04-29 17:44:41 +0200
committerThomas Schwinge <tschwinge@gcc.gnu.org>2015-04-29 17:44:41 +0200
commitb811915de18ac5837e60898cf05cbb428dc35ead (patch)
tree5d32459e9ed3ee300bc31e8c1358d46db24be2d7 /gcc/cp
parentf970a17d6fc79eda660c78632ceff35d814933a8 (diff)
downloadgcc-b811915de18ac5837e60898cf05cbb428dc35ead.zip
gcc-b811915de18ac5837e60898cf05cbb428dc35ead.tar.gz
gcc-b811915de18ac5837e60898cf05cbb428dc35ead.tar.bz2
Add OMP_STANDALONE_CLAUSES.
gcc/ * tree.h (OMP_STANDALONE_CLAUSES): New macro. * gimplify.c (gimplify_omp_workshare): Use it. gcc/c/ * c-parser.c (c_parser_oacc_enter_exit_data): Use OMP_STANDALONE_CLAUSES. gcc/cp/ * parser.c (cp_parser_oacc_enter_exit_data): Use OMP_STANDALONE_CLAUSES. From-SVN: r222580
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parser.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 3ee050c..9442faa 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
+
+ * parser.c (cp_parser_oacc_enter_exit_data): Use
+ OMP_STANDALONE_CLAUSES.
+
2015-04-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64667
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 4ea2ca2..cfb512b 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -31606,10 +31606,7 @@ cp_parser_oacc_enter_exit_data (cp_parser *parser, cp_token *pragma_tok,
stmt = enter ? make_node (OACC_ENTER_DATA) : make_node (OACC_EXIT_DATA);
TREE_TYPE (stmt) = void_type_node;
- if (enter)
- OACC_ENTER_DATA_CLAUSES (stmt) = clauses;
- else
- OACC_EXIT_DATA_CLAUSES (stmt) = clauses;
+ OMP_STANDALONE_CLAUSES (stmt) = clauses;
SET_EXPR_LOCATION (stmt, pragma_tok->location);
add_stmt (stmt);
return stmt;