aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@hxi.com>2000-07-17 08:24:48 +0000
committerJeff Law <law@gcc.gnu.org>2000-07-17 02:24:48 -0600
commitf42ef510b353657cce680c12a42cdb861ed5d081 (patch)
treecb8e44563a9cda4569f8480222b61bd6d708dd26 /gcc/fold-const.c
parentaae3f0dafd66b8168e52b2c72e01ff9814876180 (diff)
downloadgcc-f42ef510b353657cce680c12a42cdb861ed5d081.zip
gcc-f42ef510b353657cce680c12a42cdb861ed5d081.tar.gz
gcc-f42ef510b353657cce680c12a42cdb861ed5d081.tar.bz2
* fold-const.c: Fix comment typos.
From-SVN: r35072
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index c636bdc..991ad2e 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -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)
/* 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).