From: Thomas Schwinge Date: Wed, 29 Jun 2016 09:07:52 +0000 (+0200) Subject: Rename PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE X-Git-Tag: basepoints/gcc-8~5970 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9d8d99478f3b02e55a69b166a70646c87a7f5cd;p=thirdparty%2Fgcc.git Rename PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE gcc/c-family/ * c-pragma.h (enum pragma_kind): Rename PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all users. From-SVN: r237842 --- diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index d5b839594ce3..679cb6bda826 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2016-06-29 Thomas Schwinge + + * c-pragma.h (enum pragma_kind): Rename + PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all + users. + 2016-06-29 Richard Biener PR middle-end/71002 diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c index c73aa8221049..277bc5603189 100644 --- a/gcc/c-family/c-pragma.c +++ b/gcc/c-family/c-pragma.c @@ -1286,7 +1286,7 @@ static const struct omp_pragma_def omp_pragmas[] = { { "threadprivate", PRAGMA_OMP_THREADPRIVATE } }; static const struct omp_pragma_def omp_pragmas_simd[] = { - { "declare", PRAGMA_OMP_DECLARE_REDUCTION }, + { "declare", PRAGMA_OMP_DECLARE }, { "distribute", PRAGMA_OMP_DISTRIBUTE }, { "for", PRAGMA_OMP_FOR }, { "parallel", PRAGMA_OMP_PARALLEL }, diff --git a/gcc/c-family/c-pragma.h b/gcc/c-family/c-pragma.h index 65f10db6e6f8..6d9cb086ea32 100644 --- a/gcc/c-family/c-pragma.h +++ b/gcc/c-family/c-pragma.h @@ -46,7 +46,7 @@ enum pragma_kind { PRAGMA_OMP_CANCEL, PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_CRITICAL, - PRAGMA_OMP_DECLARE_REDUCTION, + PRAGMA_OMP_DECLARE, PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_FLUSH, diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 7f491f1dc060..1d2dac796ad1 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -10215,7 +10215,7 @@ c_parser_pragma (c_parser *parser, enum pragma_context context, bool *if_p) c_parser_skip_until_found (parser, CPP_PRAGMA_EOL, NULL); return false; - case PRAGMA_OMP_DECLARE_REDUCTION: + case PRAGMA_OMP_DECLARE: c_parser_omp_declare (parser, context); return false; @@ -16381,7 +16381,7 @@ c_parser_omp_declare_simd (c_parser *parser, enum pragma_context context) while (c_parser_next_token_is (parser, CPP_PRAGMA)) { if (c_parser_peek_token (parser)->pragma_kind - != PRAGMA_OMP_DECLARE_REDUCTION + != PRAGMA_OMP_DECLARE || c_parser_peek_2nd_token (parser)->type != CPP_NAME || strcmp (IDENTIFIER_POINTER (c_parser_peek_2nd_token (parser)->value), diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index d1f06fdb8610..739fca08f9f3 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -37203,7 +37203,7 @@ cp_parser_pragma (cp_parser *parser, enum pragma_context context, bool *if_p) parser->lexer->in_pragma = true; id = cp_parser_pragma_kind (pragma_tok); - if (id != PRAGMA_OMP_DECLARE_REDUCTION && id != PRAGMA_OACC_ROUTINE) + if (id != PRAGMA_OMP_DECLARE && id != PRAGMA_OACC_ROUTINE) cp_ensure_no_omp_declare_simd (parser); switch (id) { @@ -37310,7 +37310,7 @@ cp_parser_pragma (cp_parser *parser, enum pragma_context context, bool *if_p) cp_parser_omp_threadprivate (parser, pragma_tok); return false; - case PRAGMA_OMP_DECLARE_REDUCTION: + case PRAGMA_OMP_DECLARE: cp_parser_omp_declare (parser, pragma_tok, context); return false;