From fb871e926238d74ed1993ab112d8e33e68006d4a Mon Sep 17 00:00:00 2001
From: lerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sat, 4 Sep 2004 12:43:27 +0000
Subject: [PATCH] 	* decl.c (grok_declarator): Remove a redundant
 semicolon.

	* parser.c (cp_parser_decl_specifier_seq, cp_parser_type_specifier):
	Correct comments describing function parameters.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87085 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/cp/ChangeLog |  9 ++++++++-
 gcc/cp/decl.c    |  2 +-
 gcc/cp/parser.c  | 13 +++++--------
 3 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ec6988c61629..32a1b7eb372f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,4 +1,11 @@
-2004-0903  Matt Austern  <austern@apple.com>
+2004-09-04  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+	* decl.c (grok_declarator): Remove a redundant semicolon.
+
+	* parser.c (cp_parser_decl_specifier_seq, cp_parser_type_specifier):
+	Correct comments describing function parameters.
+
+2004-09-03  Matt Austern  <austern@apple.com>
 	Compile speed improvement.
 	* parser.c (cp_lexer_print_token): Only define if ENABLE_CHECKING set.
 	Otherwise define a stub macro that expands to nothing.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 1aed934a3e5a..607b907078d8 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -6420,7 +6420,7 @@ grokdeclarator (const cp_declarator *declarator,
 	    if (TREE_CODE (decl) == SCOPE_REF)
 	      {
 		tree qualifying_scope = TREE_OPERAND (decl, 0);
-;
+
 		/* It is valid to write:
 
 		   class C { void f(); };
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index c3f741dff992..45eb20aa4659 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -7126,11 +7126,7 @@ cp_parser_simple_declaration (cp_parser* parser,
 
    Set *DECL_SPECS to a representation of the decl-specifier-seq.
 
-   If FRIEND_IS_NOT_CLASS_P is non-NULL, and the `friend' specifier
-   appears, and the entity that will be a friend is not going to be a
-   class, then *FRIEND_IS_NOT_CLASS_P will be set to TRUE.  Note that
-   even if *FRIEND_IS_NOT_CLASS_P is FALSE, the entity to which
-   friendship is granted might not be a class.
+   The parser flags FLAGS is used to control type-specifier parsing.
 
    *DECLARES_CLASS_OR_ENUM is set to the bitwise or of the following
    flags:
@@ -9227,9 +9223,10 @@ cp_parser_explicit_specialization (cp_parser* parser)
    class-specifier, enum-specifier, or elaborated-type-specifier, a
    TREE_TYPE is returned; otherwise, a TYPE_DECL is returned.
 
-   If IS_FRIEND is TRUE then this type-specifier is being declared a
-   `friend'.  If IS_DECLARATION is TRUE, then this type-specifier is
-   appearing in a decl-specifier-seq.
+   The parser flags FLAGS is used to control type-specifier parsing.
+
+   If IS_DECLARATION is TRUE, then this type-specifier is appearing
+   in a decl-specifier-seq.
 
    If DECLARES_CLASS_OR_ENUM is non-NULL, and the type-specifier is a
    class-specifier, enum-specifier, or elaborated-type-specifier, then
-- 
GitLab