From: Kazu Hirata Date: Fri, 22 Aug 2003 06:45:14 +0000 (+0000) Subject: c-decl.c: Fix comment formatting. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beb235f8964321e02e492c9b6856a1ca56f2e027;p=platform%2Fupstream%2Fgcc.git c-decl.c: Fix comment formatting. * c-decl.c: Fix comment formatting. * cfgrtl.c: Likewise. * combine.c: Likewise. * convert.c: Likewise. * dominance.c: Likewise. * dwarf2out.c: Likewise. * dwarfout.c: Likewise. * expmed.c: Likewise. * fold-const.c: Likewise. * gcov.c: Likewise. * genattrtab.c: Likewise. * ggc-common.c: Likewise. * mips-tfile.c: Likewise. * regmove.c: Likewise. From-SVN: r70677 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e7c9335..4d1d2eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,22 @@ 2003-08-22 Kazu Hirata + * c-decl.c: Fix comment formatting. + * cfgrtl.c: Likewise. + * combine.c: Likewise. + * convert.c: Likewise. + * dominance.c: Likewise. + * dwarf2out.c: Likewise. + * dwarfout.c: Likewise. + * expmed.c: Likewise. + * fold-const.c: Likewise. + * gcov.c: Likewise. + * genattrtab.c: Likewise. + * ggc-common.c: Likewise. + * mips-tfile.c: Likewise. + * regmove.c: Likewise. + +2003-08-22 Kazu Hirata + * builtin-attrs.def: Fix comment formatting. * c-pretty-print.c: Likewise. * diagnostic.h: Likewise. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index d7b0776..de4b443 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -572,7 +572,7 @@ poplevel (int keep, int dummy ATTRIBUTE_UNUSED, int functionbody) goto normal; case VAR_DECL: - /* keep this in sync with stmt.c:warn_about_unused_variables. + /* Keep this in sync with stmt.c:warn_about_unused_variables. No warnings when the global scope is popped because the global scope isn't popped for the last translation unit, so the warnings are done in c_write_global_declaration. */ diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 45ca189..7441cd9 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -2552,7 +2552,7 @@ cfg_layout_delete_block (basic_block bb) } } -/* return true when blocks A and B can be safely merged. */ +/* Return true when blocks A and B can be safely merged. */ static bool cfg_layout_can_merge_blocks_p (basic_block a, basic_block b) { diff --git a/gcc/combine.c b/gcc/combine.c index 7e83706..b9413f6 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -9686,7 +9686,7 @@ simplify_shift_const (rtx x, enum rtx_code code, break; case EQ: - /* convert (lshiftrt (eq FOO 0) C) to (xor FOO 1) if STORE_FLAG_VALUE + /* Convert (lshiftrt (eq FOO 0) C) to (xor FOO 1) if STORE_FLAG_VALUE says that the sign bit can be tested, FOO has mode MODE, C is GET_MODE_BITSIZE (MODE) - 1, and FOO has only its low-order bit that may be nonzero. */ diff --git a/gcc/convert.c b/gcc/convert.c index 0d3a46c..fe3f3ec 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -203,7 +203,7 @@ convert_to_real (tree type, tree expr) if (itype != type && FLOAT_TYPE_P (type)) switch (TREE_CODE (expr)) { - /* convert (float)-x into -(float)x. This is always safe. */ + /* Convert (float)-x into -(float)x. This is always safe. */ case ABS_EXPR: case NEGATE_EXPR: if (TYPE_PRECISION (type) < TYPE_PRECISION (TREE_TYPE (expr))) @@ -211,7 +211,7 @@ convert_to_real (tree type, tree expr) fold (convert_to_real (type, TREE_OPERAND (expr, 0)))); break; - /* convert (outertype)((innertype0)a+(innertype1)b) + /* Convert (outertype)((innertype0)a+(innertype1)b) into ((newtype)a+(newtype)b) where newtype is the widest mode from all of these. */ case PLUS_EXPR: diff --git a/gcc/dominance.c b/gcc/dominance.c index 944aaf8..38182ef 100644 --- a/gcc/dominance.c +++ b/gcc/dominance.c @@ -545,7 +545,7 @@ calculate_dominance_info (enum cdi_direction reverse) dominance_info info; basic_block b; - /* allocate structure for dominance information. */ + /* Allocate structure for dominance information. */ info = xmalloc (sizeof (struct dominance_info)); info->forest = et_forest_create (); VARRAY_GENERIC_PTR_INIT (info->varray, last_basic_block + 3, "dominance info"); diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 81cb7ec..eac43ac 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -9686,7 +9686,7 @@ add_subscript_info (dw_die_ref type_die, tree type) lower = TYPE_MIN_VALUE (domain); upper = TYPE_MAX_VALUE (domain); - /* define the index type. */ + /* Define the index type. */ if (TREE_TYPE (domain)) { /* ??? This is probably an Ada unnamed subrange type. Ignore the @@ -10784,7 +10784,7 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) fn_arg_types = TYPE_ARG_TYPES (TREE_TYPE (decl)); if (fn_arg_types != NULL) { - /* this is the prototyped case, check for ... */ + /* This is the prototyped case, check for.... */ if (TREE_VALUE (tree_last (fn_arg_types)) != void_type_node) gen_unspecified_parameters_die (decl, subr_die); } diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 43ab37b..166addb 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -4066,7 +4066,7 @@ output_string_type_die (void *arg) sibling_attribute (); equate_type_number_to_die_number (type); member_attribute (TYPE_CONTEXT (type)); - /* this is a fixed length string */ + /* This is a fixed length string. */ byte_size_attribute (type); } @@ -5226,13 +5226,13 @@ output_decl (tree decl, tree containing_scope) if (fn_arg_types) { - /* this is the prototyped case, check for ... */ + /* This is the prototyped case, check for.... */ if (TREE_VALUE (tree_last (fn_arg_types)) != void_type_node) output_die (output_unspecified_parameters_die, decl); } else { - /* this is unprototyped, check for undefined (just declaration) */ + /* This is unprototyped, check for undefined (just declaration). */ if (!DECL_INITIAL (decl)) output_die (output_unspecified_parameters_die, decl); } diff --git a/gcc/expmed.c b/gcc/expmed.c index 89ecd0c..8ccd238 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -2628,7 +2628,7 @@ choose_multiplier (unsigned HOST_WIDE_INT d, int n, int precision, abort (); if (mhigh_hi > 1 || mlow_hi > 1) abort (); - /* assert that mlow < mhigh. */ + /* Assert that mlow < mhigh. */ if (! (mlow_hi < mhigh_hi || (mlow_hi == mhigh_hi && mlow_lo < mhigh_lo))) abort (); diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 3869c06..27a4724c 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -558,7 +558,7 @@ div_and_round_double (enum tree_code code, int uns, if (hden == 0 && lden == 0) overflow = 1, lden = 1; - /* calculate quotient sign and convert operands to unsigned. */ + /* Calculate quotient sign and convert operands to unsigned. */ if (!uns) { if (hnum < 0) diff --git a/gcc/gcov.c b/gcc/gcov.c index ff63274..4c9af4d 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -1487,7 +1487,7 @@ static void add_line_counts (coverage_t *coverage, function_t *fn) { unsigned ix; - line_t *line = NULL; /* this is propagated from one iteration to the + line_t *line = NULL; /* This is propagated from one iteration to the next. */ /* Scan each basic block. */ diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index d34fde2..7024c01 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -183,8 +183,8 @@ struct attr_desc unsigned unsigned_p : 1; /* Make the output function unsigned int. */ unsigned is_const : 1; /* Attribute value constant for each run. */ unsigned is_special : 1; /* Don't call `write_attr_set'. */ - unsigned func_units_p : 1; /* this is the function_units attribute */ - unsigned blockage_p : 1; /* this is the blockage range function */ + unsigned func_units_p : 1; /* This is the function_units attribute. */ + unsigned blockage_p : 1; /* This is the blockage range function. */ unsigned static_p : 1; /* Make the output function static. */ }; diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 6441710..a125b32 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -739,7 +739,7 @@ ggc_min_heapsize_heuristic (void) /* Adjust for rlimits. */ min_heap_kbytes = ggc_rlimit_bound (min_heap_kbytes); - min_heap_kbytes /= 1024; /* convert to Kbytes. */ + min_heap_kbytes /= 1024; /* Convert to Kbytes. */ /* The heuristic is RAM/8, with a lower bound of 4M and an upper bound of 128M (when RAM >= 1GB). */ diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 5c8b8f8..314ed53 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -3280,7 +3280,7 @@ parse_def (const char *name_start) value, indx); - /* deal with struct, union, and enum tags. */ + /* Deal with struct, union, and enum tags. */ if (symbol_type == st_Block) { /* Create or update the tag information. */ diff --git a/gcc/regmove.c b/gcc/regmove.c index 550694a..9205e1f 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -2032,7 +2032,7 @@ fixup_match_1 (rtx insn, rtx set, rtx src, rtx src_subreg, rtx dst, } -/* return nonzero if X is stable and mentions no registers but for +/* Return nonzero if X is stable and mentions no registers but for mentioning SRC or mentioning / changing DST . If in doubt, presume it is unstable. The rationale is that we want to check if we can move an insn easily