diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-04-29 17:44:41 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-04-29 17:44:41 +0200 |
commit | b811915de18ac5837e60898cf05cbb428dc35ead (patch) | |
tree | 5d32459e9ed3ee300bc31e8c1358d46db24be2d7 /gcc/c/c-parser.c | |
parent | f970a17d6fc79eda660c78632ceff35d814933a8 (diff) | |
download | gcc-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/c/c-parser.c')
-rw-r--r-- | gcc/c/c-parser.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index cc8a4e3..bf0e4c57 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -12154,10 +12154,7 @@ c_parser_oacc_enter_exit_data (c_parser *parser, bool enter) 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, loc); add_stmt (stmt); } |