From 454ff5cbf0544db194bc0b1a87902f913ab93faa Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 18 Sep 2004 19:47:10 +0000 Subject: [PATCH] alias.c, [...]: Fix comment typos. * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c, gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c, optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c, tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-threadupdate.c: Fix comment typos. From-SVN: r87707 --- gcc/ChangeLog | 9 +++++++++ gcc/alias.c | 2 +- gcc/crtstuff.c | 2 +- gcc/dbxout.c | 2 +- gcc/domwalk.c | 2 +- gcc/domwalk.h | 2 +- gcc/gcc.c | 2 +- gcc/gcse.c | 6 +++--- gcc/global.c | 2 +- gcc/lambda-code.c | 4 ++-- gcc/loop.c | 2 +- gcc/mips-tdump.c | 4 ++-- gcc/optabs.h | 4 ++-- gcc/predict.c | 4 ++-- gcc/reg-stack.c | 4 ++-- gcc/regclass.c | 4 ++-- gcc/sched-rgn.c | 2 +- gcc/tree-optimize.c | 2 +- gcc/tree-ssa-dom.c | 6 +++--- gcc/tree-ssa-forwprop.c | 2 +- gcc/tree-ssa-operands.c | 2 +- gcc/tree-ssa-phiopt.c | 2 +- gcc/tree-ssa-threadupdate.c | 2 +- 23 files changed, 41 insertions(+), 32 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ede93d3fb3..9cbeca88ec0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2004-09-18 Kazu Hirata + + * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c, + gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c, + optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c, + tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c, + tree-ssa-operands.c, tree-ssa-phiopt.c, + tree-ssa-threadupdate.c: Fix comment typos. + 2004-09-18 Kazu Hirata * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md, diff --git a/gcc/alias.c b/gcc/alias.c index cc74ee8a187..b937cb13cb8 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -2698,7 +2698,7 @@ memory_modified_1 (rtx x, rtx pat ATTRIBUTE_UNUSED, void *data) /* Return true when INSN possibly modify memory contents of MEM - (ie address can be modified). */ + (i.e. address can be modified). */ bool memory_modified_in_insn_p (rtx mem, rtx insn) { diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index 25d15569eda..ecb3dea314a 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -109,7 +109,7 @@ call_ ## FUNC (void) \ but not its definition. Making TARGET_WEAK_ATTRIBUTE conditional seems like a good solution until - one thinks about scaling to larger problems -- ie, the condition under + one thinks about scaling to larger problems -- i.e., the condition under which TARGET_WEAK_ATTRIBUTE is active will eventually get far too complicated. diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 62f3102fd1d..f822feef799 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1431,7 +1431,7 @@ dbxout_type (tree type, int full) { case VOID_TYPE: case LANG_TYPE: - /* For a void type, just define it as itself; ie, "5=5". + /* For a void type, just define it as itself; i.e., "5=5". This makes us consider it defined without saying what it is. The debugger will make it a void type when the reference is seen, and nothing will diff --git a/gcc/domwalk.c b/gcc/domwalk.c index ce0ccd113e4..7ac7ecf4f3e 100644 --- a/gcc/domwalk.c +++ b/gcc/domwalk.c @@ -52,7 +52,7 @@ Boston, MA 02111-1307, USA. */ [ Note this walker can also walk the post-dominator tree, which is - defined in a similar manner. ie, block B1 is said to post-dominate + defined in a similar manner. i.e., block B1 is said to post-dominate block B2 if all paths from B2 to the exit block must pass through B1. ] diff --git a/gcc/domwalk.h b/gcc/domwalk.h index d4778337951..53a872e34fc 100644 --- a/gcc/domwalk.h +++ b/gcc/domwalk.h @@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA. */ struct dom_walk_data { - /* This is the direction of the dominator tree we want to walk. ie, + /* This is the direction of the dominator tree we want to walk. i.e., if it is set to CDI_DOMINATORS, then we walk the dominator tree, if it is set to CDI_POST_DOMINATORS, then we walk the post dominator tree. */ diff --git a/gcc/gcc.c b/gcc/gcc.c index 6e7dec933ca..e6f72bf3cdf 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -5169,7 +5169,7 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part) } else /* Catch the case where a spec string contains something like - '%{foo:%*}'. ie there is no * in the pattern on the left + '%{foo:%*}'. i.e. there is no * in the pattern on the left hand side of the :. */ error ("spec failure: '%%*' has not been initialized by pattern match"); break; diff --git a/gcc/gcse.c b/gcc/gcse.c index 32d4d44562d..7ad4f7eeef2 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -453,7 +453,7 @@ static int reg_set_table_size; /* This is a list of expressions which are MEMs and will be used by load or store motion. Load motion tracks MEMs which aren't killed by - anything except itself. (ie, loads and stores to a single location). + anything except itself. (i.e., loads and stores to a single location). We can then allow movement of these MEM refs with a little special allowance. (all stores copy the same value to the reaching reg used for the loads). This means all values used to store into memory must have @@ -2768,7 +2768,7 @@ find_avail_set (int regno, rtx insn) struct expr *set1 = 0; /* Loops are not possible here. To get a loop we would need two sets - available at the start of the block containing INSN. ie we would + available at the start of the block containing INSN. i.e. we would need two sets like this available at the start of the block: (set (reg X) (reg Y)) @@ -2814,7 +2814,7 @@ find_avail_set (int regno, rtx insn) if (! REG_P (src)) break; - /* Follow the copy chain, ie start another iteration of the loop + /* Follow the copy chain, i.e. start another iteration of the loop and see if we have an available copy into SRC. */ regno = REGNO (src); } diff --git a/gcc/global.c b/gcc/global.c index e8184acd37e..223a468e45b 100644 --- a/gcc/global.c +++ b/gcc/global.c @@ -734,7 +734,7 @@ global_conflicts (void) evaluates X. 3. Either X or Y is not evaluated on the path to P - (ie it is used uninitialized) and thus the + (i.e. it is used uninitialized) and thus the conflict can be ignored. In cases #1 and #2 the conflict will be recorded when we diff --git a/gcc/lambda-code.c b/gcc/lambda-code.c index c520a6bf501..3faeee1bb9b 100644 --- a/gcc/lambda-code.c +++ b/gcc/lambda-code.c @@ -2033,7 +2033,7 @@ stmt_is_bumper_for_loop (struct loop *loop, tree stmt) innermost loop body. If S is a program statement, then - ie + i.e. DO I = 1, 20 S1 DO J = 1, 20 @@ -2395,7 +2395,7 @@ perfect_nestify (struct loops *loops, matrix T is legal when applied to a loop nest with a set of lexicographically non-negative distance vectors RDG if and only if for each vector d in RDG, (T.d >= 0) is lexicographically positive. - ie.: if and only if it transforms the lexicographically positive + i.e.: if and only if it transforms the lexicographically positive distance vectors to lexicographically positive vectors. Note that a unimodular matrix must transform the zero vector (and only it) to the zero vector." S.Muchnick. */ diff --git a/gcc/loop.c b/gcc/loop.c index ded07efb0b9..0f62789cab2 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -3558,7 +3558,7 @@ note_addr_stored (rtx x, rtx y ATTRIBUTE_UNUSED, } /* X is a value modified by an INSN that references a biv inside a loop - exit test (ie, X is somehow related to the value of the biv). If X + exit test (i.e., X is somehow related to the value of the biv). If X is a pseudo that is used more than once, then the biv is (effectively) used more than once. DATA is a pointer to a loop_regs structure. */ diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c index cb3669a0d71..d320330531d 100644 --- a/gcc/mips-tdump.c +++ b/gcc/mips-tdump.c @@ -631,7 +631,7 @@ type_to_string (AUXU *aux_ptr, int index, FDR *fdp) /* * Snarf up any array bounds in the correct order. Arrays * store 5 successive words in the aux. table: - * word 0 RNDXR to type of the bounds (ie, int) + * word 0 RNDXR to type of the bounds (i.e., int) * word 1 Current file descriptor index * word 2 low bound * word 3 high bound (or -1 if []) @@ -689,7 +689,7 @@ type_to_string (AUXU *aux_ptr, int index, FDR *fdp) int first_array = i; int j; - /* Print array bounds reversed (ie, in the order the C + /* Print array bounds reversed (i.e., in the order the C programmer writes them). C is such a fun language.... */ while (i < 5 && qualifiers[i+1].type == tq_Array) diff --git a/gcc/optabs.h b/gcc/optabs.h index 648a158084a..b5632c770fe 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -374,12 +374,12 @@ extern GTY(()) optab code_to_optab[NUM_RTX_CODE + 1]; typedef rtx (*rtxfun) (rtx); -/* Indexed by the rtx-code for a conditional (eg. EQ, LT,...) +/* Indexed by the rtx-code for a conditional (e.g. EQ, LT,...) gives the gen_function to make a branch to test that condition. */ extern rtxfun bcc_gen_fctn[NUM_RTX_CODE]; -/* Indexed by the rtx-code for a conditional (eg. EQ, LT,...) +/* Indexed by the rtx-code for a conditional (e.g. EQ, LT,...) gives the insn code to make a store-condition insn to test that condition. */ diff --git a/gcc/predict.c b/gcc/predict.c index c6d5ce7cb94..88de74b80b2 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -823,7 +823,7 @@ estimate_probability (struct loops *loops_info) && !last_basic_block_p (e->dest)) predict_edge_def (e, PRED_EARLY_RETURN, TAKEN); - /* Look for block we are guarding (ie we dominate it, + /* Look for block we are guarding (i.e. we dominate it, but it doesn't postdominate us). */ if (e->dest != EXIT_BLOCK_PTR && e->dest != bb && dominated_by_p (CDI_DOMINATORS, e->dest, e->src) @@ -1183,7 +1183,7 @@ tree_estimate_probability (void) && !last_basic_block_p (e->dest)) predict_edge_def (e, PRED_EARLY_RETURN, TAKEN); - /* Look for block we are guarding (ie we dominate it, + /* Look for block we are guarding (i.e. we dominate it, but it doesn't postdominate us). */ if (e->dest != EXIT_BLOCK_PTR && e->dest != bb && dominated_by_p (CDI_DOMINATORS, e->dest, e->src) diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index f8fca7322cd..ee9c1e90402 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -105,7 +105,7 @@ asm ("foo" : "=t" (a) : "f" (b)); This asm says that input B is not popped by the asm, and that - the asm pushes a result onto the reg-stack, ie, the stack is one + the asm pushes a result onto the reg-stack, i.e., the stack is one deeper after the asm than it was before. But, it is possible that reload will think that it can use the same reg for both the input and the output, if input B dies in this insn. @@ -2393,7 +2393,7 @@ subst_stack_regs (rtx insn, stack regstack) Insert any needed insns before or after INSN, as indicated by WHERE. OLD is the original stack layout, and NEW is the desired - form. OLD is updated to reflect the code emitted, ie, it will be + form. OLD is updated to reflect the code emitted, i.e., it will be the same as NEW upon return. This function will not preserve block_end[]. But that information diff --git a/gcc/regclass.c b/gcc/regclass.c index 3d5a5f8dddd..1d33a0977b2 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1582,7 +1582,7 @@ record_reg_classes (int n_alts, int n_ops, rtx *ops, win = address_operand (op, GET_MODE (op)); /* We know this operand is an address, so we want it to be allocated to a register that can be the base of an - address, ie BASE_REG_CLASS. */ + address, i.e. BASE_REG_CLASS. */ classes[i] = reg_class_subunion[(int) classes[i]] [(int) MODE_BASE_REG_CLASS (VOIDmode)]; @@ -1696,7 +1696,7 @@ record_reg_classes (int n_alts, int n_ops, rtx *ops, win = 1; /* We know this operand is an address, so we want it to be allocated to a register that can be the base of an - address, ie BASE_REG_CLASS. */ + address, i.e. BASE_REG_CLASS. */ classes[i] = reg_class_subunion[(int) classes[i]] [(int) MODE_BASE_REG_CLASS (VOIDmode)]; diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index 9bd6d527feb..4da38c530c6 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -912,7 +912,7 @@ find_rgns (struct edge_list *edge_list) d b The algorithm in the DFS traversal may not mark B & D as part - of the loop (ie they will not have max_hdr set to A). + of the loop (i.e. they will not have max_hdr set to A). We know they can not be loop latches (else they would have had max_hdr set since they'd have a backedge to a dominator diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index fdb7e766a25..9a18f37e0c5 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -541,7 +541,7 @@ execute_pass_list (struct tree_opt_pass *pass) } -/* update recursivly all inlined_to pointers of functions +/* Update recursively all inlined_to pointers of functions inlined into NODE to INLINED_TO. */ static void update_inlined_to_pointers (struct cgraph_node *node, diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 1953dfbde66..daf46ea9f4b 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -170,7 +170,7 @@ struct opt_stats_d optimizations are not performed. Note carefully we do not propagate information through each statement - in the block. ie, if we know variable X has a value defined of + in the block. i.e., if we know variable X has a value defined of [0, 25] and we encounter Y = X + 1, we do not track a value range for Y (which would be [1, 26] if we cared). Similarly we do not constrain values as we encounter narrowing typecasts, etc. */ @@ -1988,7 +1988,7 @@ simplify_cond_and_lookup_avail_expr (tree stmt, /* We really want to avoid unnecessary computations of range info. So all ranges are computed lazily; this avoids a - lot of unnecessary work. ie, we record the conditional, + lot of unnecessary work. i.e., we record the conditional, but do not process how it constrains the variable's potential values until we know that processing the condition could be helpful. @@ -3095,7 +3095,7 @@ get_eq_expr_value (tree if_stmt, tree op1 = TREE_OPERAND (cond, 1); /* Special case comparing booleans against a constant as we know - the value of OP0 on both arms of the branch. ie, we can record + the value of OP0 on both arms of the branch. i.e., we can record an equivalence for OP0 rather than COND. */ if ((TREE_CODE (cond) == EQ_EXPR || TREE_CODE (cond) == NE_EXPR) && TREE_CODE (op0) == SSA_NAME diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index 52c386001c9..619cab03320 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -39,7 +39,7 @@ Boston, MA 02111-1307, USA. */ Right now we only bother forward propagating into COND_EXPRs since those are relatively common cases where forward propagation creates valid - gimple code without the expression needing to fold. ie + gimple code without the expression needing to fold. i.e. bb0: x = a COND b; diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 8aae4ca1c6d..7f9840f9fcb 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -75,7 +75,7 @@ Boston, MA 02111-1307, USA. */ variable, and that same variable occurs in the same operands cache, then the new cache vector will also get the same SSA_NAME. - ie, if a stmt had a VUSE of 'a_5', and 'a' occurs in the new operand + i.e., if a stmt had a VUSE of 'a_5', and 'a' occurs in the new operand vector for VUSE, then the new vector will also be modified such that it contains 'a_5' rather than 'a'. diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index 5d7f0e4e03c..fe0fddf9345 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -47,7 +47,7 @@ static bool candidate_bb_for_phi_optimization (basic_block, basic_block *); /* This pass eliminates PHI nodes which can be trivially implemented as - an assignment from a conditional expression. ie if we have something + an assignment from a conditional expression. i.e. if we have something like: bb0: diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index c07bad2b186..ce6dcad4948 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -41,7 +41,7 @@ Boston, MA 02111-1307, USA. */ one or more in-edges to B to instead reach the destination of an out-edge from B while preserving any side effects in B. - ie, given A->B and B->C, change A->B to be A->C yet still preserve the + i.e., given A->B and B->C, change A->B to be A->C yet still preserve the side effects of executing B. 1. Make a copy of B (including its outgoing edges and statements). Call -- 2.30.2