diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 539d5a3d88a..5aa85f3ad55 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-05-31 Kazu Hirata + + * call.c, class.c, cp-tree.def, decl2.c, name-lookup.c, pt.c, + typeck.c: Fix comment formatting. + 2004-05-30 Andrew Pinski * cp-lang.c (cp_expand_decl): Remove. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index c4892e949e4..d65f0eeb23a 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -3174,7 +3174,7 @@ build_conditional_expr (tree arg1, tree arg2, tree arg3) We must avoid calling force_rvalue for expressions of type "void" because it will complain that their value is being - used. */ + used. */ if (TREE_CODE (arg2) == THROW_EXPR && TREE_CODE (arg3) != THROW_EXPR) { @@ -6470,7 +6470,7 @@ initialize_reference (tree type, tree expr, tree decl, tree *cleanup) TARGET_EXPR here. It is important that EXPR be a TARGET_EXPR below since otherwise the INIT_EXPR will attempt to make a bitwise copy of EXPR to initialize - VAR. */ + VAR. */ if (TREE_CODE (expr) != TARGET_EXPR) expr = get_target_expr (expr); /* Create the INIT_EXPR that will initialize the temporary diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 0fdd748a7af..055c68deabf 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -3012,7 +3012,7 @@ check_field_decls (tree t, tree *access_decls, /* [class.union] If a union contains a static data member, or a member of - reference type, the program is ill-formed. */ + reference type, the program is ill-formed. */ if (TREE_CODE (x) == VAR_DECL) { cp_error_at ("`%D' may not be static because it is a member of a union", x); diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def index 63a18af378e..3b4c6e6eb5a 100644 --- a/gcc/cp/cp-tree.def +++ b/gcc/cp/cp-tree.def @@ -103,7 +103,7 @@ DEFTREECODE (ALIAS_DECL, "alias_decl", 'd', 0) A BASELINK is an expression; the TREE_TYPE of the BASELINK gives the type of the expression. This type is either a FUNCTION_TYPE, METHOD_TYPE, or `unknown_type_node' indicating that the function is - overloaded. */ + overloaded. */ DEFTREECODE (BASELINK, "baselink", 'x', 0) /* Template definition. The following fields have the specified uses, @@ -197,10 +197,10 @@ DEFTREECODE (TYPEOF_TYPE, "typeof_type", 't', 0) /* A using declaration. DECL_INITIAL contains the specified scope. This is not an alias, but is later expanded into multiple aliases. The decl will have a NULL_TYPE iff the scope is a dependent scope, - otherwise it will have a void type. */ + otherwise it will have a void type. */ DEFTREECODE (USING_DECL, "using_decl", 'd', 0) -/* A using directive. The operand is USING_STMT_NAMESPACE. */ +/* A using directive. The operand is USING_STMT_NAMESPACE. */ DEFTREECODE (USING_STMT, "using_directive", 'e', 1) /* An un-parsed default argument. Looks like an IDENTIFIER_NODE. */ @@ -237,7 +237,7 @@ DEFTREECODE (PSEUDO_DTOR_EXPR, "pseudo_dtor_expr", 'e', 3) that expression if it appeared in a template argument list. In that situation, we create a NON_DEPENDENT_EXPR to take the place of the original expression. The expression is the only operand -- it - is only needed for diagnostics. */ + is only needed for diagnostics. */ DEFTREECODE (NON_DEPENDENT_EXPR, "non_dependent_expr", 'e', 1) /* CTOR_INITIALIZER is a placeholder in template code for a call to diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 296bf23b1f9..0b93a5815de 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1422,7 +1422,7 @@ comdat_linkage (tree decl) linkonce sections, so that they will be merged with implicit instantiations; otherwise we get duplicate symbol errors. For Darwin we do not want explicit instantiations to be - linkonce. */ + linkonce. */ void maybe_make_one_only (tree decl) diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 30a4d7efba8..195070a8033 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -552,7 +552,7 @@ add_decl_to_level (tree decl, cxx_scope *b) /* If appropriate, add decl to separate list of statics. We include extern variables because they might turn out to be static later. It's OK for this list to contain a few false - positives. */ + positives. */ if (b->kind == sk_namespace) if ((TREE_CODE (decl) == VAR_DECL && (TREE_STATIC (decl) || DECL_EXTERNAL (decl))) diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 14a6788cc27..09f1e9263f5 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -9543,7 +9543,7 @@ template_decl_level (tree decl) /* Decide whether ARG can be unified with PARM, considering only the cv-qualifiers of each type, given STRICT as documented for unify. - Returns nonzero iff the unification is OK on that basis. */ + Returns nonzero iff the unification is OK on that basis. */ static int check_cv_quals_for_unify (int strict, tree arg, tree parm) @@ -10792,7 +10792,7 @@ do_type_instantiation (tree t, tree storage, tsubst_flags_t complain) a static archive's TOC. The problematic case is if we're doing a non-extern explicit instantiation of an extern template: we have to put member functions in the TOC in that case, or we'll - get unresolved symbols at link time. */ + get unresolved symbols at link time. */ explicitly_instantiate_members = TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 527134d1493..b8e48b420d8 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -1026,7 +1026,7 @@ comptypes (tree t1, tree t2, int strict) if (!comptypes (TYPE_OFFSET_BASETYPE (t1), TYPE_OFFSET_BASETYPE (t2), strict & ~COMPARE_REDECLARATION)) return false; - /* Fall through. */ + /* Fall through. */ case POINTER_TYPE: case REFERENCE_TYPE: @@ -5994,7 +5994,7 @@ check_return_expr (tree retval) returned expression uses the chosen variable somehow. And people expect this restriction, anyway. (jason 2000-11-19) - See finish_function and finalize_nrv for the rest of this optimization. */ + See finish_function and finalize_nrv for the rest of this optimization. */ if (fn_returns_value_p && flag_elide_constructors) {