From: Volker Reichelt Date: Sun, 11 May 2008 19:52:18 +0000 (+0000) Subject: parser.c (cp_parser_omp_clause_reduction): Add missing "expected" in error message. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ffb4ce0b0e6c2a9cc70d5ecc60d07951ba40f9c;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 473db145650..73705037cd0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,17 +1,23 @@ -2008-05-07 Kenneth Zadeck +2008-05-11 Volker Reichelt - * 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 -2008-05-02 Simon Baldwin + * 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 PR bootstrap/36108 * typeck.c (build_array_ref): Remove warn_array_subscript_range. -2008-05-01 Simon Baldwin +2008-05-01 Simon Baldwin * typeck.c (build_array_ref): Call warn_array_subscript_range. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index a78e124a246..c3383e6441e 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);