From ae915c82ab340223fecf56c9c4d130f9b3e71eec Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 5 Nov 2005 20:34:08 +0000 Subject: [PATCH] * decl2.c, init.c, typeck.c: Fix comment typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106533 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl2.c | 2 +- gcc/cp/init.c | 2 +- gcc/cp/typeck.c | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0e7d5e935ba..191bedf8690 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2005-11-05 Kazu Hirata + + * decl2.c, init.c, typeck.c: Fix comment typos. + 2005-11-04 Richard Guenther PR c++/22487 diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 70ca017d9e4..77ac5f7ae9e 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2320,7 +2320,7 @@ get_priority_info (int priority) ((!DECL_HAS_INIT_PRIORITY_P (decl) || DECL_INIT_PRIORITY (decl) == 0) \ ? DEFAULT_INIT_PRIORITY : DECL_INIT_PRIORITY (decl)) -/* Wether a DECL needs a guard to protect it against multiple +/* Whether a DECL needs a guard to protect it against multiple initialization. */ #define NEEDS_GUARD_P(decl) (TREE_PUBLIC (decl) && (DECL_COMMON (decl) \ diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 1ff2fd7be7b..f43846719e5 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -1604,7 +1604,7 @@ constant_value_1 (tree decl, bool integral_p) : (!TREE_CONSTANT (init) /* Do not return an aggregate constant (of which string literals are a special case), as we do not - want to make inadvertant copies of such entities, + want to make inadvertent copies of such entities, and we must be sure that their addresses are the same everywhere. */ || TREE_CODE (init) == CONSTRUCTOR diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index a7edfc12e7f..b9be6fd694f 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -1858,7 +1858,7 @@ check_template_keyword (tree decl) DR 228 removed the restriction that the template be a member template. - DR 96, if accepted would add the further restriction that explcit + DR 96, if accepted would add the further restriction that explicit template arguments must be provided if the template keyword is used, but, as of 2005-10-16, that DR is still in "drafting". If this DR is accepted, then the semantic checks here can be -- 2.11.4.GIT