From e7dc5b4f224051483b5df3bb38bd0c2f1b1147f1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 23 Jan 2005 14:36:26 +0000 Subject: [PATCH] data.c, [...]: Fix comment typos. * data.c, dependency.c, f95-lang.c, io.c, trans-array.c, trans-decl.c, trans-expr.c, trans-intrinsic.c, trans-io.c, trans-stmt.c, trans-types.c, trans.h: Fix comment typos. Follow spelling conventions. From-SVN: r94111 --- gcc/fortran/ChangeLog | 7 +++++++ gcc/fortran/data.c | 4 ++-- gcc/fortran/dependency.c | 4 ++-- gcc/fortran/f95-lang.c | 2 +- gcc/fortran/io.c | 6 +++--- gcc/fortran/trans-array.c | 16 ++++++++-------- gcc/fortran/trans-decl.c | 4 ++-- gcc/fortran/trans-expr.c | 2 +- gcc/fortran/trans-intrinsic.c | 4 ++-- gcc/fortran/trans-io.c | 2 +- gcc/fortran/trans-stmt.c | 4 ++-- gcc/fortran/trans-types.c | 2 +- gcc/fortran/trans.h | 10 +++++----- 13 files changed, 37 insertions(+), 30 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index a182f8927650..19688624bfa5 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,10 @@ +2005-01-23 Kazu Hirata + + * data.c, dependency.c, f95-lang.c, io.c, trans-array.c, + trans-decl.c, trans-expr.c, trans-intrinsic.c, trans-io.c, + trans-stmt.c, trans-types.c, trans.h: Fix comment typos. + Follow spelling conventions. + 2005-01-22 Bud Davis PR fortran/19313 diff --git a/gcc/fortran/data.c b/gcc/fortran/data.c index 0c4429a6c153..5a74516c7585 100644 --- a/gcc/fortran/data.c +++ b/gcc/fortran/data.c @@ -1,5 +1,5 @@ /* Supporting functions for resolving DATA statement. - Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by Lifang Zeng This file is part of GCC. @@ -26,7 +26,7 @@ Software Foundation, 59 Temple Place - Suite 330,Boston, MA during resolveing DATA statement. Refer to check_data_variable and traverse_data_list in resolve.c. - The complexity exists in the handleing of array section, implied do + The complexity exists in the handling of array section, implied do and array of struct appeared in DATA statement. We call gfc_conv_structure, gfc_con_array_array_initializer, diff --git a/gcc/fortran/dependency.c b/gcc/fortran/dependency.c index a89e96504da4..fb0c5764d451 100644 --- a/gcc/fortran/dependency.c +++ b/gcc/fortran/dependency.c @@ -1,5 +1,5 @@ /* Dependency analysis - Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2002, 2005 Free Software Foundation, Inc. Contributed by Paul Brook This file is part of GCC. @@ -382,7 +382,7 @@ get_deps (mpz_t x1, mpz_t x2, mpz_t y) (l_start:l_end:l_stride) -> (0:no_of_elements) (r_start:r_end:r_stride) -> (X1:X2) Where r_end is implicit as both sections must have the same number of - elelments. + elements. Returns 0 on success, 1 of the transformation failed. */ /* TODO: Should this be (0:no_of_elements-1) */ diff --git a/gcc/fortran/f95-lang.c b/gcc/fortran/f95-lang.c index 839ee6b99529..b406bf041a0f 100644 --- a/gcc/fortran/f95-lang.c +++ b/gcc/fortran/f95-lang.c @@ -779,7 +779,7 @@ gfc_init_builtin_functions (void) #include "mathbuiltins.def" - /* We define these seperately as the fortran versions have different + /* We define these separately as the fortran versions have different semantics (they return an integer type) */ gfc_define_builtin ("__builtin_floor", mfunc_double[0], BUILT_IN_FLOOR, "floor", true); diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c index 0b50956ca43f..8230fa99cd02 100644 --- a/gcc/fortran/io.c +++ b/gcc/fortran/io.c @@ -1098,7 +1098,7 @@ gfc_resolve_open (gfc_open * open) } -/* Match an OPEN statmement. */ +/* Match an OPEN statement. */ match gfc_match_open (void) @@ -1178,7 +1178,7 @@ gfc_free_close (gfc_close * close) } -/* Match elements of a CLOSE statment. */ +/* Match elements of a CLOSE statement. */ static match match_close_element (gfc_close * close) @@ -1425,7 +1425,7 @@ gfc_match_rewind (void) } -/******************** Data Transfer Statments *********************/ +/******************** Data Transfer Statements *********************/ typedef enum { M_READ, M_WRITE, M_PRINT, M_INQUIRE } diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index 1172ee673216..e281619741d3 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -516,7 +516,7 @@ gfc_trans_allocate_array_storage (gfc_loopinfo * loop, gfc_ss_info * info, /* Generate code to allocate and initialize the descriptor for a temporary - array. This is used for both temporaries needed by the scaparizer, and + array. This is used for both temporaries needed by the scalarizer, and functions returning arrays. Adjusts the loop variables to be zero-based, and calculates the loop bounds for callee allocated arrays. Also fills in the descriptor, data and offset fields of info if known. @@ -1305,7 +1305,7 @@ gfc_init_loopinfo (gfc_loopinfo * loop) } -/* Copies the loop variable info to a gfc_se sructure. Does not copy the SS +/* Copies the loop variable info to a gfc_se structure. Does not copy the SS chain. */ void @@ -1534,7 +1534,7 @@ gfc_conv_vector_array_index (gfc_se * se, tree index, gfc_ss * ss) /* Return the offset for an index. Performs bound checking for elemental - dimensions. Single element references are processed seperately. */ + dimensions. Single element references are processed separately. */ static tree gfc_conv_array_index_offset (gfc_se * se, gfc_ss_info * info, int dim, int i, @@ -1653,7 +1653,7 @@ gfc_conv_array_ref (gfc_se * se, gfc_array_ref * ar) tree fault; gfc_se indexse; - /* Handle scalarized references seperately. */ + /* Handle scalarized references separately. */ if (ar->type != AR_ELEMENT) { gfc_conv_scalarized_array_ref (se, ar); @@ -1811,7 +1811,7 @@ gfc_trans_preloop_setup (gfc_loopinfo * loop, int dim, int flag, info->offset = gfc_evaluate_now (info->offset, pblock); } - /* Remeber this offset for the second loop. */ + /* Remember this offset for the second loop. */ if (dim == loop->temp_dim - 1) info->saved_offset = info->offset; } @@ -3590,7 +3590,7 @@ gfc_conv_expr_descriptor (gfc_se * se, gfc_expr * expr, gfc_ss * ss) /* A transformational function return value will be a temporary array descriptor. We still need to go through the scalarizer to create the descriptor. Elemental functions ar handled as - arbitary expressions, i.e. copy to a temporary. */ + arbitrary expressions, i.e. copy to a temporary. */ secss = ss; /* Look for the SS for this function. */ while (secss != gfc_ss_terminator @@ -3761,7 +3761,7 @@ gfc_conv_expr_descriptor (gfc_se * se, gfc_expr * expr, gfc_ss * ss) {parm, parmtype, dim} refer to the new one. {desc, type, n, secss, loop} refer to the original, which maybe a descriptorless array. - The bounds of the scaralization are the bounds of the section. + The bounds of the scalarization are the bounds of the section. We don't have to worry about numeric overflows when calculating the offsets because all elements are within the array data. */ @@ -4357,7 +4357,7 @@ gfc_walk_function_expr (gfc_ss * ss, gfc_expr * expr) if (sym->attr.elemental) return gfc_walk_elemental_function_args (ss, expr, GFC_SS_REFERENCE); - /* Scalar functions are OK as these are evaluated outside the scalarisation + /* Scalar functions are OK as these are evaluated outside the scalarization loop. Pass back and let the caller deal with it. */ return ss; } diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index 2f16acc19da1..65ba867948a2 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -1,5 +1,5 @@ /* Backend function setup - Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by Paul Brook This file is part of GCC. @@ -1998,7 +1998,7 @@ gfc_create_module_variable (gfc_symbol * sym) internal_error ("module symbol %s in wrong namespace", sym->name); } - /* Only output variables and array valued parametes. */ + /* Only output variables and array valued parameters. */ if (sym->attr.flavor != FL_VARIABLE && (sym->attr.flavor != FL_PARAMETER || sym->attr.dimension == 0)) return; diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c index 8b5129cdec47..494faa44135d 100644 --- a/gcc/fortran/trans-expr.c +++ b/gcc/fortran/trans-expr.c @@ -1194,7 +1194,7 @@ gfc_conv_function_call (gfc_se * se, gfc_symbol * sym, gfc_add_block_to_block (&se->pre, &parmse.pre); gfc_add_block_to_block (&se->post, &parmse.post); - /* Character strings are passed as two paramarers, a length and a + /* Character strings are passed as two parameters, a length and a pointer. */ if (parmse.string_length != NULL_TREE) stringargs = gfc_chainon_list (stringargs, parmse.string_length); diff --git a/gcc/fortran/trans-intrinsic.c b/gcc/fortran/trans-intrinsic.c index cdc1fd8b11c1..dcabd4112fe7 100644 --- a/gcc/fortran/trans-intrinsic.c +++ b/gcc/fortran/trans-intrinsic.c @@ -2368,7 +2368,7 @@ prepare_arg_info (gfc_se * se, gfc_expr * expr, gfc_add_modify_expr(&se->pre, arg, tmp); rcs->arg = arg; - /* Caculate the numbers of bits of exponent, fraction and word */ + /* Calculate the numbers of bits of exponent, fraction and word */ n = gfc_validate_kind (a1->ts.type, a1->ts.kind, false); tmp = build_int_cst (NULL_TREE, gfc_real_kinds[n].digits - 1); rcs->fdigits = convert (masktype, tmp); @@ -2796,7 +2796,7 @@ gfc_conv_intrinsic_function (gfc_se * se, gfc_expr * expr) gfc_conv_intrinsic_conversion (se, expr); break; - /* Integer conversions are handled seperately to make sure we get the + /* Integer conversions are handled separately to make sure we get the correct rounding mode. */ case GFC_ISYM_INT: gfc_conv_intrinsic_int (se, expr, FIX_TRUNC_EXPR); diff --git a/gcc/fortran/trans-io.c b/gcc/fortran/trans-io.c index ebd5e9eb54c0..67fc796f86fe 100644 --- a/gcc/fortran/trans-io.c +++ b/gcc/fortran/trans-io.c @@ -1046,7 +1046,7 @@ build_dt (tree * function, gfc_code * code) /* Translate the IOLENGTH form of an INQUIRE statement. We treat this as a third sort of data transfer statement, except that - lengths are summed instead of actually transfering any data. */ + lengths are summed instead of actually transferring any data. */ tree gfc_trans_iolength (gfc_code * code) diff --git a/gcc/fortran/trans-stmt.c b/gcc/fortran/trans-stmt.c index 7335c1f6e663..2d2fe8bf8b7f 100644 --- a/gcc/fortran/trans-stmt.c +++ b/gcc/fortran/trans-stmt.c @@ -2187,7 +2187,7 @@ gfc_trans_pointer_assign_need_temp (gfc_expr * expr1, gfc_expr * expr2, e = f g = h end forall - (where e,f,g,h are arbitary expressions possibly involving i) + (where e,f,g,h are arbitrary expressions possibly involving i) Translates to: count = ((end + 1 - start) / staride) masktmp(:) = maskexpr(:) @@ -3082,7 +3082,7 @@ gfc_trans_cycle (gfc_code * code) } -/* EXIT a DO loop. Similair to CYCLE, but now the label is in +/* EXIT a DO loop. Similar to CYCLE, but now the label is in TREE_VALUE (backend_decl) of the gfc_code node at the head of the loop. */ diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c index bd45ba49373d..7bd0011ce8a2 100644 --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -1409,7 +1409,7 @@ gfc_get_derived_type (gfc_symbol * derived) if (c->pointer) { /* Pointers to arrays aren't actually pointer types. The - descriptors are seperate, but the data is common. */ + descriptors are separate, but the data is common. */ field_type = gfc_build_array_type (field_type, c->as); } else diff --git a/gcc/fortran/trans.h b/gcc/fortran/trans.h index f347724a047e..b670f7a3888d 100644 --- a/gcc/fortran/trans.h +++ b/gcc/fortran/trans.h @@ -1,5 +1,5 @@ /* Header for code translation functions - Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by Paul Brook This file is part of GCC. @@ -75,7 +75,7 @@ typedef struct gfc_se gfc_se; -/* Scalarisation State chain. Created by walking an expression tree before +/* Scalarization State chain. Created by walking an expression tree before creating the scalarization loops. Then passed as part of a gfc_se structure to translate the expression inside the loop. Note that these chains are terminated by gfc_se_terminator, not NULL. A NULL pointer in a gfc_se @@ -106,7 +106,7 @@ typedef struct gfc_ss_info tree stride[GFC_MAX_DIMENSIONS]; tree delta[GFC_MAX_DIMENSIONS]; - /* Translation from scalariser dimensions to actual dimensions. + /* Translation from scalarizer dimensions to actual dimensions. actual = dim[scalarizer] */ int dim[GFC_MAX_DIMENSIONS]; } @@ -191,7 +191,7 @@ typedef struct gfc_ss struct gfc_ss *loop_chain; struct gfc_ss *next; - /* This is used by assignments requiring teporaries. The bits specify which + /* This is used by assignments requiring temporaries. The bits specify which loops the terms appear in. This will be 1 for the RHS expressions, 2 for the LHS expressions, and 3(=1|2) for the temporary. */ unsigned useflags:2; @@ -213,7 +213,7 @@ typedef struct gfc_loopinfo /* All the SS involved with this loop. */ gfc_ss *ss; - /* The SS describing the teporary used in an assignment. */ + /* The SS describing the temporary used in an assignment. */ gfc_ss *temp_ss; /* The scalarization loop index variables. */