diff options
author | Volker Reichelt <reichelt@gcc.gnu.org> | 2008-05-11 19:52:18 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2008-05-11 19:52:18 +0000 |
commit | 8ffb4ce0b0e6c2a9cc70d5ecc60d07951ba40f9c (patch) | |
tree | 01ac1e633d8acced766b08f5974c5bc0c167c816 /gcc | |
parent | fc54bc8478e453f6f4ffb86bf509aea1e122c1d4 (diff) | |
download | gcc-8ffb4ce0b0e6c2a9cc70d5ecc60d07951ba40f9c.zip gcc-8ffb4ce0b0e6c2a9cc70d5ecc60d07951ba40f9c.tar.gz gcc-8ffb4ce0b0e6c2a9cc70d5ecc60d07951ba40f9c.tar.bz2 |
parser.c (cp_parser_omp_clause_reduction): Add missing "expected" in error message.
* parser.c (cp_parser_omp_clause_reduction): Add missing "expected"
in error message.
(cp_parser_omp_clause_schedule): Remove superfluous "expected"
in error message.
From-SVN: r135184
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 20 | ||||
-rw-r--r-- | gcc/cp/parser.c | 6 |
2 files changed, 16 insertions, 10 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 473db14..7370503 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,17 +1,23 @@ -2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com> +2008-05-11 Volker Reichelt <v.reichelt@netcologne.de> - * decl.c (duplicate_decls): Merge in DECL_PURE_P, TREE_READONLY, - DECL_LOOPING_CONST_OR_PURE_P attributes. - * rtti.c (build_dynamic_cast_1): Rename DECL_IS_PURE to - DECL_PURE_P. + * parser.c (cp_parser_omp_clause_reduction): Add missing "expected" + in error message. + (cp_parser_omp_clause_schedule): Remove superfluous "expected" + in error message. +2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com> -2008-05-02 Simon Baldwin <simonb@google.com> + * decl.c (duplicate_decls): Merge in DECL_PURE_P, TREE_READONLY, + DECL_LOOPING_CONST_OR_PURE_P attributes. + * rtti.c (build_dynamic_cast_1): Rename DECL_IS_PURE to + DECL_PURE_P. + +2008-05-02 Simon Baldwin <simonb@google.com> PR bootstrap/36108 * typeck.c (build_array_ref): Remove warn_array_subscript_range. -2008-05-01 Simon Baldwin <simonb@google.com> +2008-05-01 Simon Baldwin <simonb@google.com> * typeck.c (build_array_ref): Call warn_array_subscript_range. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index a78e124..c3383e6 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -19814,8 +19814,8 @@ cp_parser_omp_clause_reduction (cp_parser *parser, tree list) code = TRUTH_ORIF_EXPR; break; default: - cp_parser_error (parser, "%<+%>, %<*%>, %<-%>, %<&%>, %<^%>, %<|%>, " - "%<&&%>, or %<||%>"); + cp_parser_error (parser, "expected %<+%>, %<*%>, %<-%>, %<&%>, %<^%>, " + "%<|%>, %<&&%>, or %<||%>"); resync_fail: cp_parser_skip_to_closing_parenthesis (parser, /*recovering=*/true, /*or_comma=*/false, @@ -19846,7 +19846,7 @@ cp_parser_omp_clause_schedule (cp_parser *parser, tree list) { tree c, t; - if (!cp_parser_require (parser, CPP_OPEN_PAREN, "expected %<(%>")) + if (!cp_parser_require (parser, CPP_OPEN_PAREN, "%<(%>")) return list; c = build_omp_clause (OMP_CLAUSE_SCHEDULE); |