Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
f42ef510
Commit
f42ef510
authored
Jul 17, 2000
by
Kazu Hirata
Committed by
Jeff Law
Jul 17, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c: Fix comment typos.
From-SVN: r35072
parent
aae3f0da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
gcc/ChangeLog
+4
-0
gcc/fold-const.c
+3
-3
No files found.
gcc/ChangeLog
View file @
f42ef510
2000-07-17 Kazu Hirata <kazu@hxi.com>
* fold-const.c: Fix comment typos.
2000-07-16 Laurynas Biveinis <lauras@softhome.net>
2000-07-16 Laurynas Biveinis <lauras@softhome.net>
* cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
* cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
...
...
gcc/fold-const.c
View file @
f42ef510
...
@@ -3204,7 +3204,7 @@ simple_operand_p (exp)
...
@@ -3204,7 +3204,7 @@ simple_operand_p (exp)
try to change a logical combination of comparisons into a range test.
try to change a logical combination of comparisons into a range test.
For example, both
For example, both
X == 2
&& X == 3 && X == 4 &&
X == 5
X == 2
|| X == 3 || X == 4 ||
X == 5
and
and
X >= 2 && X <= 5
X >= 2 && X <= 5
are converted to
are converted to
...
@@ -3299,7 +3299,7 @@ range_binop (code, type, arg0, upper0_p, arg1, upper1_p)
...
@@ -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
/* Given EXP, a logical expression, set the range it is testing into
variables denoted by PIN_P, PLOW, and PHIGH. Return the expression
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
as the returned expression. If EXP is not a comparison, we will most
likely not be returning a useful value and range. */
likely not be returning a useful value and range. */
...
@@ -3894,7 +3894,7 @@ fold_truthop (code, truth_type, lhs, rhs)
...
@@ -3894,7 +3894,7 @@ fold_truthop (code, truth_type, lhs, rhs)
enum
tree_code
code
;
enum
tree_code
code
;
tree
truth_type
,
lhs
,
rhs
;
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
the comparisons are NE_EXPR. If this is the "and", we can do something
if the comparisons are EQ_EXPR. I.e.,
if the comparisons are EQ_EXPR. I.e.,
(a->b == 2 && a->c == 4) can become (a->new == NEW).
(a->b == 2 && a->c == 4) can become (a->new == NEW).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment