summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog24
-rw-r--r--gcc/alias.c2
-rw-r--r--gcc/c-common.c4
-rw-r--r--gcc/c-decl.c4
-rw-r--r--gcc/c-opts.c4
-rw-r--r--gcc/combine.c2
-rw-r--r--gcc/cpplib.c2
-rw-r--r--gcc/diagnostic.c4
-rw-r--r--gcc/dojump.c2
-rw-r--r--gcc/final.c2
-rw-r--r--gcc/fold-const.c4
-rw-r--r--gcc/gcc.c2
-rw-r--r--gcc/gcse.c2
-rw-r--r--gcc/ggc-page.c4
-rw-r--r--gcc/jump.c2
-rw-r--r--gcc/loop.c2
-rw-r--r--gcc/mips-tfile.c2
-rw-r--r--gcc/recog.c2
-rw-r--r--gcc/regclass.c6
-rw-r--r--gcc/regmove.c2
-rw-r--r--gcc/tree.c2
-rw-r--r--gcc/tree.h2
22 files changed, 53 insertions, 29 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5e84184090a..15ca3e520b0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,27 @@
+2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
+
+ * alias.c: Fix comment formatting.
+ * c-common.c: Likewise.
+ * c-decl.c: Likewise.
+ * c-opts.c: Likewise.
+ * combine.c: Likewise.
+ * cpplib.c: Likewise.
+ * diagnostic.c: Likewise.
+ * dojump.c: Likewise.
+ * final.c: Likewise.
+ * fold-const.c: Likewise.
+ * gcc.c: Likewise.
+ * gcse.c: Likewise.
+ * ggc-page.c: Likewise.
+ * jump.c: Likewise.
+ * loop.c: Likewise.
+ * mips-tfile.c: Likewise.
+ * recog.c: Likewise.
+ * regclass.c: Likewise.
+ * regmove.c: Likewise.
+ * tree.c: Likewise.
+ * tree.h: Likewise.
+
2003-07-22 Per Bothner <pbothner@apple.com>
* line-map.c (add_line_map): Handle invalid LEAVE request.
diff --git a/gcc/alias.c b/gcc/alias.c
index edd8a3deb3f..32531365882 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -1326,7 +1326,7 @@ find_base_term (rtx x)
x = XEXP (x, 0);
if (GET_CODE (x) != PLUS && GET_CODE (x) != MINUS)
return 0;
- /* fall through */
+ /* Fall through. */
case LO_SUM:
case PLUS:
case MINUS:
diff --git a/gcc/c-common.c b/gcc/c-common.c
index b5d6651ade4..b33856f5be1 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -2649,7 +2649,7 @@ c_common_truthvalue_conversion (tree expr)
if (TREE_CODE (TREE_TYPE (expr)) == REFERENCE_TYPE
|| TREE_CODE (TREE_TYPE (TREE_OPERAND (expr, 0))) == REFERENCE_TYPE)
break;
- /* fall through... */
+ /* Fall through.... */
case NOP_EXPR:
/* If this is widening the argument, we can ignore it. */
if (TYPE_PRECISION (TREE_TYPE (expr))
@@ -2668,7 +2668,7 @@ c_common_truthvalue_conversion (tree expr)
be false. */
if (HONOR_INFINITIES (TYPE_MODE (TREE_TYPE (TREE_OPERAND (expr, 0)))))
break;
- /* fall through... */
+ /* Fall through.... */
case BIT_XOR_EXPR:
/* This and MINUS_EXPR can be changed into a comparison of the
two objects. */
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 6f5e631e936..cb032eaff55 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -5164,11 +5164,11 @@ finish_struct (tree t, tree fieldlist, tree attributes)
{
field_array[len++] = x;
- /* if there is anonymous struct or union break out of the loop */
+ /* If there is anonymous struct or union, break out of the loop. */
if (DECL_NAME (x) == NULL)
break;
}
- /* found no anonymous struct/union add the TYPE_LANG_SPECIFIC. */
+ /* Found no anonymous struct/union. Add the TYPE_LANG_SPECIFIC. */
if (x == NULL)
{
TYPE_LANG_SPECIFIC (t) = space;
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index 34e1d060a46..a6dd9f0a5c8 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -717,7 +717,7 @@ c_common_handle_option (size_t scode, const char *arg, int value)
case OPT_ffreestanding:
value = !value;
- /* Fall through... */
+ /* Fall through.... */
case OPT_fhosted:
flag_hosted = value;
flag_no_builtin = !value;
@@ -966,7 +966,7 @@ c_common_handle_option (size_t scode, const char *arg, int value)
is not overridden. */
case OPT_pedantic_errors:
cpp_opts->pedantic_errors = 1;
- /* fall through */
+ /* Fall through. */
case OPT_pedantic:
cpp_opts->pedantic = 1;
cpp_opts->warn_endif_labels = 1;
diff --git a/gcc/combine.c b/gcc/combine.c
index 431a723cde7..de7ace43a2b 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -3057,7 +3057,7 @@ find_split_point (rtx *loc, rtx insn)
break;
case NE:
- /* if STORE_FLAG_VALUE is -1, this is (NE X 0) and only one bit of X
+ /* If STORE_FLAG_VALUE is -1, this is (NE X 0) and only one bit of X
is known to be on, this can be converted into a NEG of a shift. */
if (STORE_FLAG_VALUE == -1 && XEXP (SET_SRC (x), 1) == const0_rtx
&& GET_MODE (SET_SRC (x)) == GET_MODE (XEXP (SET_SRC (x), 0))
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index b732c305aa3..94fb57aeaea 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -556,7 +556,7 @@ undefine_macros (cpp_reader *pfile, cpp_hashnode *h,
if (CPP_OPTION (pfile, warn_unused_macros))
_cpp_warn_if_unused_macro (pfile, h, NULL);
- /* and fall through... */
+ /* And fall through.... */
case NT_ASSERTION:
_cpp_free_definition (h);
break;
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index be4b03cc7dd..cae8046d8e9 100644
--- a/gcc/diagnostic.c
+++ b/gcc/diagnostic.c
@@ -833,7 +833,7 @@ diagnostic_count_diagnostic (diagnostic_context *context,
if (context->internal_error)
(*context->internal_error) (diagnostic->message.format_spec,
diagnostic->message.args_ptr);
- /* fall through */
+ /* Fall through. */
case DK_FATAL: case DK_SORRY:
case DK_ANACHRONISM: case DK_NOTE:
@@ -857,7 +857,7 @@ diagnostic_count_diagnostic (diagnostic_context *context,
context->warnings_are_errors_message = false;
}
- /* and fall through */
+ /* And fall through. */
case DK_ERROR:
++diagnostic_kind_count (context, DK_ERROR);
break;
diff --git a/gcc/dojump.c b/gcc/dojump.c
index 5d5e5a6b55a..c213cd0e967 100644
--- a/gcc/dojump.c
+++ b/gcc/dojump.c
@@ -551,7 +551,7 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label)
}
}
}
- /* fall through and generate the normal code. */
+ /* Fall through and generate the normal code. */
default:
normal:
diff --git a/gcc/final.c b/gcc/final.c
index 6f2b5fb55eb..a89520ba141 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1570,7 +1570,7 @@ final (rtx first, FILE *file, int optimize, int prescan)
for (insn = first; insn; insn = NEXT_INSN (insn))
{
- if (INSN_UID (insn) > max_uid) /* find largest UID */
+ if (INSN_UID (insn) > max_uid) /* Find largest UID. */
max_uid = INSN_UID (insn);
if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > 0)
line_note_exists[NOTE_LINE_NUMBER (insn)] = 1;
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 9fd4f001242..fd9cb3d5cfb 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -712,7 +712,7 @@ div_and_round_double (enum tree_code code, int uns,
decode (quo, lquo, hquo);
finish_up:
- /* if result is negative, make it so. */
+ /* If result is negative, make it so. */
if (quo_neg)
neg_double (*lquo, *hquo, lquo, hquo);
@@ -2209,7 +2209,7 @@ eval_subst (tree arg, tree old0, tree new0, tree old1, tree new1)
default:
break;
}
- /* fall through - ??? */
+ /* Fall through - ??? */
case '<':
{
diff --git a/gcc/gcc.c b/gcc/gcc.c
index a7a9cc93996..c04fbffc8dd 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -5172,7 +5172,7 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part)
/* Backslash: treat next character as ordinary. */
c = *p++;
- /* fall through */
+ /* Fall through. */
default:
/* Ordinary character: put it into the current argument. */
obstack_1grow (&obstack, c);
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 3b57aa1a856..7be71d9da37 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -2121,7 +2121,7 @@ gcse_constant_p (rtx x)
/* Consider a COMPARE of the same registers is a constant
- if they are not floating point registers. */
+ if they are not floating point registers. */
if (GET_CODE(x) == COMPARE
&& GET_CODE (XEXP (x, 0)) == REG
&& GET_CODE (XEXP (x, 1)) == REG
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index 7b0697e9fa8..62964d61182 100644
--- a/gcc/ggc-page.c
+++ b/gcc/ggc-page.c
@@ -410,7 +410,7 @@ static struct globals
/* Total allocations and overhead for sizes less than 32, 64 and 128.
These sizes are interesting because they are typical cache line
- sizes. */
+ sizes. */
unsigned long long total_allocated_under32;
unsigned long long total_overhead_under32;
@@ -421,7 +421,7 @@ static struct globals
unsigned long long total_allocated_under128;
unsigned long long total_overhead_under128;
- /* The overhead for each of the allocation orders. */
+ /* The overhead for each of the allocation orders. */
unsigned long long total_overhead_per_order[NUM_ORDERS];
} stats;
#endif
diff --git a/gcc/jump.c b/gcc/jump.c
index dd9d8d41a2b..d2b53f8cf4b 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -2345,7 +2345,7 @@ rtx_renumbered_equal_p (rtx x, rtx y)
case 'u':
if (XEXP (x, i) != XEXP (y, i))
return 0;
- /* fall through. */
+ /* Fall through. */
case '0':
break;
diff --git a/gcc/loop.c b/gcc/loop.c
index 74851265501..c4d2779a18c 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -2254,7 +2254,7 @@ move_movables (struct loop *loop, struct loop_movables *movables,
and prevent further processing of it. */
m1->done = 1;
- /* if library call, delete all insns. */
+ /* If library call, delete all insns. */
if ((temp = find_reg_note (m1->insn, REG_RETVAL,
NULL_RTX)))
delete_insn_chain (XEXP (temp, 0), m1->insn);
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c
index 4a284611f78..5c8b8f8738b 100644
--- a/gcc/mips-tfile.c
+++ b/gcc/mips-tfile.c
@@ -4743,7 +4743,7 @@ main (int argc, char **argv)
else
rename_output = 1;
- /* fall through to 'i' case. */
+ /* Fall through to 'i' case. */
case 'i':
if (obj_in_name == (char *) 0)
diff --git a/gcc/recog.c b/gcc/recog.c
index 508baeeed3a..7e75f34da83 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -333,7 +333,7 @@ apply_change_group (void)
{
rtx object = changes[i].object;
- /* if there is no object to test or if it is the same as the one we
+ /* If there is no object to test or if it is the same as the one we
already tested, ignore it. */
if (object == 0 || object == last_validated)
continue;
diff --git a/gcc/regclass.c b/gcc/regclass.c
index b48f2e657fb..ec636d777aa 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -340,7 +340,7 @@ init_reg_sets_1 (void)
continue;
subclass1:
- /* keep the largest subclass */ /* SPEE 900308 */
+ /* Keep the largest subclass. */ /* SPEE 900308 */
GO_IF_HARD_REG_SUBSET (reg_class_contents[k],
reg_class_contents[(int) reg_class_subunion[i][j]],
subclass2);
@@ -2156,7 +2156,7 @@ allocate_reg_info (size_t num_regs, int new_p, int renumber_p)
{
size_t old_allocated = regno_allocated;
- regno_allocated = num_regs + (num_regs / 20); /* add some slop space */
+ regno_allocated = num_regs + (num_regs / 20); /* Add some slop space. */
size_renumber = regno_allocated * sizeof (short);
if (!reg_n_info)
@@ -2171,7 +2171,7 @@ allocate_reg_info (size_t num_regs, int new_p, int renumber_p)
{
VARRAY_GROW (reg_n_info, regno_allocated);
- if (new_p) /* if we're zapping everything, no need to realloc */
+ if (new_p) /* If we're zapping everything, no need to realloc. */
{
free ((char *) renumber);
free ((char *) reg_pref);
diff --git a/gcc/regmove.c b/gcc/regmove.c
index 435a1565cc2..550694a0201 100644
--- a/gcc/regmove.c
+++ b/gcc/regmove.c
@@ -2064,7 +2064,7 @@ stable_and_no_regs_but_for_p (rtx x, rtx src, rtx dst)
if (code == MEM
&& ! stable_and_no_regs_but_for_p (XEXP (x, 0), src, dst))
return 0;
- /* fall through */
+ /* Fall through. */
default:
return ! rtx_unstable_p (x);
}
diff --git a/gcc/tree.c b/gcc/tree.c
index 5590598148e..4a633969e21 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -55,7 +55,7 @@ extern int _obstack_allocated_p (struct obstack *h, void *obj);
int tree_node_counts[(int) all_kinds];
int tree_node_sizes[(int) all_kinds];
-/* Keep in sync with tree.h:enum tree_node_kind. */
+/* Keep in sync with tree.h:enum tree_node_kind. */
static const char * const tree_node_kind_names[] = {
"decls",
"types",
diff --git a/gcc/tree.h b/gcc/tree.h
index b627a98c51c..22cbfdb4af0 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3021,7 +3021,7 @@ extern void fancy_abort (const char *, int, const char *)
#define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__)
/* Enum and arrays used for tree allocation stats.
- Keep in sync with tree.c:tree_node_kind_names. */
+ Keep in sync with tree.c:tree_node_kind_names. */
typedef enum
{
d_kind,
OpenPOWER on IntegriCloud