* fold-const.c: Fix comment typos.
authorKazu Hirata <kazu@hxi.com>
Mon, 17 Jul 2000 08:24:48 +0000 (08:24 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 Jul 2000 08:24:48 +0000 (02:24 -0600)
From-SVN: r35072

gcc/ChangeLog
gcc/fold-const.c

index 534895e8b9ddba180a52481a4d8249c60a82436b..84fcf4254f785919be00475d04a2a19d9509017d 100644 (file)
@@ -1,3 +1,7 @@
+2000-07-17  Kazu Hirata  <kazu@hxi.com>
+
+       * fold-const.c: Fix comment typos.
+
 2000-07-16  Laurynas Biveinis  <lauras@softhome.net>
 
        * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
index c636bdc73ee36e0a411213b51783356d6cd9be8f..991ad2e9e6fa38f4923ecbc376f0f37ac2c04910 100644 (file)
@@ -3204,7 +3204,7 @@ simple_operand_p (exp)
    try to change a logical combination of comparisons into a range test.
 
    For example, both
-       X == 2 && X == 3 && X == 4 && X == 5
+       X == 2 || X == 3 || X == 4 || X == 5
    and
        X >= 2 && X <= 5
    are converted to
@@ -3299,7 +3299,7 @@ range_binop (code, type, arg0, upper0_p, arg1, upper1_p)
 \f      
 /* Given EXP, a logical expression, set the range it is testing into
    variables denoted by PIN_P, PLOW, and PHIGH.  Return the expression
-   actually being tested.  *PLOW and *PHIGH will have be made the same type
+   actually being tested.  *PLOW and *PHIGH will be made of the same type
    as the returned expression.  If EXP is not a comparison, we will most
    likely not be returning a useful value and range.  */
 
@@ -3894,7 +3894,7 @@ fold_truthop (code, truth_type, lhs, rhs)
      enum tree_code code;
      tree truth_type, lhs, rhs;
 {
-  /* If this is the "or" of two comparisons, we can do something if we
+  /* If this is the "or" of two comparisons, we can do something if
      the comparisons are NE_EXPR.  If this is the "and", we can do something
      if the comparisons are EQ_EXPR.  I.e., 
        (a->b == 2 && a->c == 4) can become (a->new == NEW).