From 91c82c20c59b724ac410dd75d378e0798edb4e1b Mon Sep 17 00:00:00 2001 From: kazu Date: Tue, 19 Aug 2003 23:22:00 +0000 Subject: [PATCH] * builtins.c: Fix comment typos. * c-common.c: Likewise. * c-decl.c: Likewise. * c-pretty-print.c: Likewise. * cfgbuild.c: Likewise. * cfglayout.c: Likewise. * cfgloopanal.c: Likewise. * cgraphunit.c: Likewise. * cppfiles.c: Likewise. * dwarfout.c: Likewise. * expr.c: Likewise. * fold-const.c: Likewise. * gcse.c: Likewise. * ggc-page.c: Likewise. * haifa-sched.c: Likewise. * pretty-print.c: Likewise. * tree.c: Likewise. * tree.h: Likewise. * value-prof.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70583 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 22 ++++++++++++++++++++++ gcc/builtins.c | 2 +- gcc/c-common.c | 2 +- gcc/c-decl.c | 2 +- gcc/c-pretty-print.c | 8 ++++---- gcc/cfgbuild.c | 2 +- gcc/cfglayout.c | 2 +- gcc/cfgloopanal.c | 2 +- gcc/cgraphunit.c | 10 +++++----- gcc/cppfiles.c | 4 ++-- gcc/dwarfout.c | 2 +- gcc/expr.c | 2 +- gcc/fold-const.c | 2 +- gcc/gcse.c | 4 ++-- gcc/ggc-page.c | 2 +- gcc/haifa-sched.c | 2 +- gcc/pretty-print.c | 2 +- gcc/tree.c | 2 +- gcc/tree.h | 2 +- gcc/value-prof.c | 2 +- 20 files changed, 50 insertions(+), 28 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7cd5b0a..95b7f54 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,27 @@ 2003-08-19 Kazu Hirata + * builtins.c: Fix comment typos. + * c-common.c: Likewise. + * c-decl.c: Likewise. + * c-pretty-print.c: Likewise. + * cfgbuild.c: Likewise. + * cfglayout.c: Likewise. + * cfgloopanal.c: Likewise. + * cgraphunit.c: Likewise. + * cppfiles.c: Likewise. + * dwarfout.c: Likewise. + * expr.c: Likewise. + * fold-const.c: Likewise. + * gcse.c: Likewise. + * ggc-page.c: Likewise. + * haifa-sched.c: Likewise. + * pretty-print.c: Likewise. + * tree.c: Likewise. + * tree.h: Likewise. + * value-prof.c: Likewise. + +2003-08-19 Kazu Hirata + * c-decl.c: Follow spelling conventions. * cppfiles.c: Likewise. diff --git a/gcc/builtins.c b/gcc/builtins.c index 5b975f0..934e6fa 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -4544,7 +4544,7 @@ expand_builtin_printf (tree arglist, rtx target, enum machine_mode mode, size_t len = strlen (fmt_str); if (fmt_str[len - 1] == '\n') { - /* Create a NUL-terminalted string that's one char shorter + /* Create a NUL-terminated string that's one char shorter than the original, stripping off the trailing '\n'. */ char *newstr = (char *) alloca (len); memcpy (newstr, fmt_str, len - 1); diff --git a/gcc/c-common.c b/gcc/c-common.c index cc9caf7..3089e5d 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -5639,7 +5639,7 @@ c_estimate_num_insns_1 (tree *tp, int *walk_subtrees, void *data) return NULL; } /* Assume that constants and references counts nothing. These should - be majorized by amount of operations amoung them we count later + be majorized by amount of operations among them we count later and are common target of CSE and similar optimizations. */ if (TREE_CODE_CLASS (TREE_CODE (x)) == 'c' || TREE_CODE_CLASS (TREE_CODE (x)) == 'r') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 33df352..d7b0776 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6690,7 +6690,7 @@ make_pointer_declarator (tree type_quals_attrs, tree target) /* A wrapper around lhd_set_decl_assembler_name that gives static variables their C names if they are at file scope and only one translation unit is being compiled, for backwards compatibility - with certain bizzare assembler hacks (like crtstuff.c). */ + with certain bizarre assembler hacks (like crtstuff.c). */ void c_static_assembler_name (tree decl) diff --git a/gcc/c-pretty-print.c b/gcc/c-pretty-print.c index ee4d2a4..455137e 100644 --- a/gcc/c-pretty-print.c +++ b/gcc/c-pretty-print.c @@ -30,9 +30,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA /* The pretty-printer code is primarily designed to closely follow (GNU) C and C++ grammars. That is to be contrasted with spaghetti codes we used to have in the past. Following a structured - approach (preferaably the official grammars) is believed to make it - much easier o add extensions and nifty pretty-printing effects that - takes expresssion or declaration contexts into account. */ + approach (preferably the official grammars) is believed to make it + much easier to add extensions and nifty pretty-printing effects that + takes expression or declaration contexts into account. */ #define pp_c_whitespace(PP) \ @@ -299,7 +299,7 @@ pp_c_simple_type_specifier (c_pretty_printer ppi, tree t) Implementation note: Because of the non-linearities in array or - function declarations, this routinie prints not just the + function declarations, this routine prints not just the specifier-qualifier-list of such entities or types of such entities, but also the 'pointer' production part of their declarators. The remaining part is done by pp_declarator or pp_c_abstract_declarator. */ diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index eb7fd22..cd662da 100644 --- a/gcc/cfgbuild.c +++ b/gcc/cfgbuild.c @@ -121,7 +121,7 @@ control_flow_insn_p (rtx insn) return (flag_non_call_exceptions && can_throw_internal (insn)); case BARRIER: - /* It is nonsence to reach barrier when looking for the + /* It is nonsense to reach barrier when looking for the end of basic block, but before dead code is eliminated this may happen. */ return false; diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index 3839089..7121a3e 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -795,7 +795,7 @@ fixup_reorder_chain (void) prev_bb->next_bb = EXIT_BLOCK_PTR; EXIT_BLOCK_PTR->prev_bb = prev_bb; - /* Anoying special case - jump around dead jumptables left in the code. */ + /* Annoying special case - jump around dead jumptables left in the code. */ FOR_EACH_BB (bb) { edge e; diff --git a/gcc/cfgloopanal.c b/gcc/cfgloopanal.c index 5502844..da3602e 100644 --- a/gcc/cfgloopanal.c +++ b/gcc/cfgloopanal.c @@ -557,7 +557,7 @@ count_strange_loop_iterations (rtx init, rtx lim, enum rtx_code cond, abort (); } - /* If this is const_true_rtx and we did not take a conservative aproximation + /* If this is const_true_rtx and we did not take a conservative approximation of after_wrap above, we might iterate the calculation (but of course we would have to take care about infinite cases). Ignore this for now. */ rqmt = simplify_gen_relational (cond, SImode, mode, after_wrap, lim); diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index faf6850..02a569f 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -781,7 +781,7 @@ cgraph_decide_inlining_of_small_functions (struct cgraph_node **inlined, || !cgraph_default_inline_p (node)) continue; - /* Rule out always_inline functions we dealt with earler. */ + /* Rule out always_inline functions we dealt with earlier. */ for (e = node->callers; e; e = e->next_caller) if (e->inline_call) break; @@ -1015,7 +1015,7 @@ cgraph_inline_p (tree caller_decl, tree callee_decl) if (e->callee == callee) return e->inline_call; /* We do not record builtins in the callgraph. Perhaps it would make more - sense to do so and then prune out those not overwriten by explicit + sense to do so and then prune out those not overwritten by explicit function body. */ return false; } @@ -1023,7 +1023,7 @@ cgraph_inline_p (tree caller_decl, tree callee_decl) Attempt to topologically sort the nodes so function is output when all called functions are already assembled to allow data to be - propagated accross the callgraph. Use a stack to get smaller distance + propagated across the callgraph. Use a stack to get smaller distance between a function and it's callees (later we may choose to use a more sophisticated algorithm for function reordering; we will likely want to use subsections to make the output functions appear in top-down @@ -1058,8 +1058,8 @@ cgraph_expand_functions (void) /* Mark all local functions. - Local function is function whose calls can occur only in the - current compilation unit so we change it's calling convetion. + A local function is one whose calls can occur only in the + current compilation unit, so we change its calling convention. We simply mark all static functions whose address is not taken as local. */ diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index c0aaa5c..04f067d 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -119,7 +119,7 @@ struct _cpp_file /* A singly-linked list for all searches for a given file name, with its head pointed to by a slot in FILE_HASH. The file name is what appeared between the quotes in a #include directive; it can be - determined implicity from the hash table location or explicitly + determined implicitly from the hash table location or explicitly from FILE->name. FILE is a structure containing details about the file that was @@ -494,7 +494,7 @@ read_file_guts (cpp_reader *pfile, _cpp_file *file) } /* Convenience wrapper around read_file_guts that opens the file if - necessary and closes the file desciptor after reading. FILE must + necessary and closes the file descriptor after reading. FILE must have been passed through find_file() at some stage. */ static bool read_file (cpp_reader *pfile, _cpp_file *file) diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index cd4dc05..43ab37b 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -942,7 +942,7 @@ static void retry_incomplete_types (void); #endif /* Pseudo-ops for pushing the current section onto the section stack (and - simultaneously changing to a new section) and for poping back to the + simultaneously changing to a new section) and for popping back to the section we were in immediately before this one. Note that most svr4 assemblers only maintain a one level stack... you can push all the sections you want, but you can only pop out one level. (The sparc diff --git a/gcc/expr.c b/gcc/expr.c index f2c21c4..0dd4940 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -6393,7 +6393,7 @@ highest_pow2_factor (tree exp) /* We can find the lowest bit that's a one. If the low HOST_BITS_PER_WIDE_INT bits are zero, return BIGGEST_ALIGNMENT. We need to handle this case since we can find it in a COND_EXPR, - a MIN_EXPR, or a MAX_EXPR. If the constant overlows, we have an + a MIN_EXPR, or a MAX_EXPR. If the constant overflows, we have an erroneous program, so return BIGGEST_ALIGNMENT to avoid any later ICE. */ if (TREE_CONSTANT_OVERFLOW (exp)) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 11d0f9d..18fd4e7 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -8364,7 +8364,7 @@ fold_checksum_tree (tree expr, struct md5_ctx *ctx, htab_t ht) #endif -/* Perform constant folding and related simplification of intializer +/* Perform constant folding and related simplification of initializer expression EXPR. This behaves identically to "fold" but ignores potential run-time traps and exceptions that fold must preserve. */ diff --git a/gcc/gcse.c b/gcc/gcse.c index a09b7fd..3233d84 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -4530,7 +4530,7 @@ find_implicit_sets (void) count = 0; FOR_EACH_BB (bb) - /* Check for more than one sucessor. */ + /* Check for more than one successor. */ if (bb->succ && bb->succ->succ_next) { cond = fis_get_condition (bb->end); @@ -6756,7 +6756,7 @@ trim_ld_motion_mems (void) /* This routine will take an expression which we are replacing with a reaching register, and update any stores that are needed if that expression is in the ld_motion list. Stores are updated by - copying their SRC to the reaching register, and then storeing + copying their SRC to the reaching register, and then storing the reaching register into the store location. These keeps the correct value in the reaching register for the loads. */ diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 62964d6..e8b3ddb 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -1452,7 +1452,7 @@ ggc_pop_context (void) G.context_depth_allocations &= omask - 1; G.context_depth_collections &= omask - 1; - /* The G.depth array is shortend so that the last index is the + /* The G.depth array is shortened so that the last index is the context_depth of the top element of by_depth. */ if (depth+1 < G.depth_in_use) e = G.depth[depth+1]; diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index c75f5ba..b0c824c 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -385,7 +385,7 @@ may_trap_exp (rtx x, int is_store) moved speculatively, by examining it's patterns, returning: TRAP_RISKY: store, or risky non-load insn (e.g. division by variable). TRAP_FREE: non-load insn. - IFREE: load from a globaly safe location. + IFREE: load from a globally safe location. IRISKY: volatile load. PFREE_CANDIDATE, PRISKY_CANDIDATE: load that need to be checked for being either PFREE or PRISKY. */ diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c index d865107..421302e 100644 --- a/gcc/pretty-print.c +++ b/gcc/pretty-print.c @@ -217,7 +217,7 @@ pp_base_format_text (pretty_printer *pp, text_info *text) default: break; } - /* We don't support precision behond that of "long long". */ + /* We don't support precision beyond that of "long long". */ if (precision > 2) abort(); diff --git a/gcc/tree.c b/gcc/tree.c index 4bbb907..8418767 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -3823,7 +3823,7 @@ build_function_type (tree value_type, tree arg_types) return t; } -/* Build a function type. The RETURN_TYPE is the type retured by the +/* Build a function type. The RETURN_TYPE is the type returned by the function. If additional arguments are provided, they are additional argument types. The list of argument types must always be terminated by NULL_TREE. */ diff --git a/gcc/tree.h b/gcc/tree.h index dbf8c8f..6826109 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2387,7 +2387,7 @@ enum size_type_kind USIZETYPE, /* Unsigned representation of sizes in bytes. */ BITSIZETYPE, /* Normal representation of sizes in bits. */ SBITSIZETYPE, /* Signed representation of sizes in bits. */ - UBITSIZETYPE, /* Unsifgned representation of sizes in bits. */ + UBITSIZETYPE, /* Unsigned representation of sizes in bits. */ TYPE_KIND_LAST}; extern GTY(()) tree sizetype_tab[(int) TYPE_KIND_LAST]; diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 171b304..5dca281 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -40,7 +40,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA insn_values_to_profile function. This function is called from branch_prob in profile.c and the requested values are instrumented by it in the first compilation with -fprofile-arcs. The optimization may then read the - gathered data in the second compilation with -fbranch-probablities. + gathered data in the second compilation with -fbranch-probabilities. The measured data is appended as REG_VALUE_PROFILE note to the instrumented insn. The argument to the note consists of an EXPR_LIST where its members have the following meaning (from the first to the last): -- 2.7.4