From c65cb8d1f07920e911d13e551476e28d204e8daa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20B=C3=ADlka?= Date: Sun, 21 Jul 2013 17:48:42 +0000 Subject: [PATCH] class.c: Fix typos. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2013-07-21 Ondřej Bílka * class.c: Fix typos. * cp-array-notation.c: Likewise. * cp-objcp-common.c: Likewise. * decl.c: Likewise. * init.c: Likewise. * mangle.c: Likewise. * parser.c: Likewise. * pt.c: Likewise. * semantics.c: Likewise. From-SVN: r201106 --- gcc/cp/ChangeLog | 12 ++++++++++++ gcc/cp/class.c | 4 ++-- gcc/cp/cp-array-notation.c | 2 +- gcc/cp/cp-objcp-common.c | 2 +- gcc/cp/decl.c | 2 +- gcc/cp/init.c | 2 +- gcc/cp/mangle.c | 2 +- gcc/cp/pt.c | 2 +- gcc/cp/semantics.c | 6 +++--- 9 files changed, 23 insertions(+), 11 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 503586fc0c2..8f4d37577fd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,15 @@ +2013-07-21 Ondřej Bílka + + * class.c: Fix typos. + * cp-array-notation.c: Likewise. + * cp-objcp-common.c: Likewise. + * decl.c: Likewise. + * init.c: Likewise. + * mangle.c: Likewise. + * parser.c: Likewise. + * pt.c: Likewise. + * semantics.c: Likewise. + 2013-07-14 Adam Butcher * semantics.c (build_lambda_expr), diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 45652a68dbe..f0c515269e2 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -5864,7 +5864,7 @@ layout_class_type (tree t, tree *virtuals_p) /* Maps offsets (represented as INTEGER_CSTs) to a TREE_LIST of types that appear at that offset. */ splay_tree empty_base_offsets; - /* True if the last field layed out was a bit-field. */ + /* True if the last field laid out was a bit-field. */ bool last_field_was_bitfield = false; /* The location at which the next field should be inserted. */ tree *next_field; @@ -6829,7 +6829,7 @@ fixed_type_or_null (tree instance, int *nonnull, int *cdtorp) INSTANCE is really a pointer. Return negative if this is a ctor/dtor. There the dynamic type is known, but this might not be the most derived base of the original object, and hence virtual - bases may not be layed out according to this type. + bases may not be laid out according to this type. Used to determine whether the virtual function table is needed or not. diff --git a/gcc/cp/cp-array-notation.c b/gcc/cp/cp-array-notation.c index d279ddd9c72..eb6a70d835c 100644 --- a/gcc/cp/cp-array-notation.c +++ b/gcc/cp/cp-array-notation.c @@ -810,7 +810,7 @@ cp_expand_cond_array_notations (tree orig_stmt) &no_rank)) return error_mark_node; /* If the condition has a zero rank, then handle array notations in body - seperately. */ + separately. */ if (cond_rank == 0) return orig_stmt; if (cond_rank != yes_rank && yes_rank != 0) diff --git a/gcc/cp/cp-objcp-common.c b/gcc/cp/cp-objcp-common.c index d301db01a78..82f684a1c7b 100644 --- a/gcc/cp/cp-objcp-common.c +++ b/gcc/cp/cp-objcp-common.c @@ -226,7 +226,7 @@ init_shadowed_var_for_decl (void) tree_decl_map_eq, 0); } -/* Return true if stmt can fall thru. Used by block_may_fallthru +/* Return true if stmt can fall through. Used by block_may_fallthru default case. */ bool diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c97134c5c40..6fe4fed272a 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -4888,7 +4888,7 @@ layout_var_decl (tree decl) if (type == error_mark_node) return; - /* If we haven't already layed out this declaration, do so now. + /* If we haven't already laid out this declaration, do so now. Note that we must not call complete type for an external object because it's type might involve templates that we are not supposed to instantiate yet. (And it's perfectly valid to say diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 3bff509b396..f346d2fbff5 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2384,7 +2384,7 @@ build_new_1 (vec **placement, tree type, tree nelts, cookie_size = targetm.cxx.get_cookie_size (elt_type); gcc_assert (TREE_CODE (cookie_size) == INTEGER_CST); gcc_checking_assert (TREE_INT_CST (cookie_size).ult (max_size)); - /* Unconditionally substract the cookie size. This decreases the + /* Unconditionally subtract the cookie size. This decreases the maximum object size and is safe even if we choose not to use a cookie after all. */ max_size -= TREE_INT_CST (cookie_size); diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 8da62b5e969..68b956bbbd1 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -1446,7 +1446,7 @@ write_closure_type_name (const tree type) /* Convert NUMBER to ascii using base BASE and generating at least MIN_DIGITS characters. BUFFER points to the _end_ of the buffer into which to store the characters. Returns the number of - characters generated (these will be layed out in advance of where + characters generated (these will be laid out in advance of where BUFFER points). */ static int diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index de054ac14b8..38eba292c15 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -7204,7 +7204,7 @@ lookup_template_class_1 (tree d1, tree arglist, tree in_decl, tree context, int use_partial_inst_tmpl = false; if (template_type == error_mark_node) - /* An error occured while building the template TEMPL, and a + /* An error occurred while building the template TEMPL, and a diagnostic has most certainly been emitted for that already. Let's propagate that error. */ return error_mark_node; diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 79b29e43316..f68d3863ab1 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -6478,7 +6478,7 @@ typedef struct GTY(()) constexpr_call { constexpr_fundef *fundef; /* Parameter bindings environment. A TREE_LIST where each TREE_PURPOSE is a parameter _DECL and the TREE_VALUE is the value of the parameter. - Note: This arrangement is made to accomodate the use of + Note: This arrangement is made to accommodate the use of iterative_hash_template_arg (see pt.c). If you change this representation, also change the hash calculation in cxx_eval_call_expression. */ @@ -6684,7 +6684,7 @@ cxx_bind_parameters_in_call (const constexpr_call *old_call, tree t, tree x, arg; tree type = parms ? TREE_TYPE (parms) : void_type_node; /* For member function, the first argument is a pointer to the implied - object. And for an object contruction, don't bind `this' before + object. And for an object construction, don't bind `this' before it is fully constructed. */ if (i == 0 && DECL_CONSTRUCTOR_P (fun)) goto next; @@ -8385,7 +8385,7 @@ check_automatic_or_tls (tree ref) C++0x [expr.const] used to say 6 An expression is a potential constant expression if it is - a constant expression where all occurences of function + a constant expression where all occurrences of function parameters are replaced by arbitrary constant expressions of the appropriate type. -- 2.30.2