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
0982a4b8
Commit
0982a4b8
authored
May 11, 1995
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r9623
parent
f5acdcc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
gcc/fold-const.c
+22
-8
No files found.
gcc/fold-const.c
View file @
0982a4b8
...
...
@@ -1741,7 +1741,8 @@ operand_equal_for_comparison_p (arg0, arg1, other)
if
(
operand_equal_p
(
arg0
,
arg1
,
0
))
return
1
;
if
(
!
INTEGRAL_TYPE_P
(
TREE_TYPE
(
arg0
)))
if
(
!
INTEGRAL_TYPE_P
(
TREE_TYPE
(
arg0
))
||
!
INTEGRAL_TYPE_P
(
TREE_TYPE
(
arg1
)))
return
0
;
/* Duplicate what shorten_compare does to ARG1 and see if that gives the
...
...
@@ -5053,16 +5054,29 @@ fold (expr)
tree
arg00
=
TREE_OPERAND
(
arg0
,
0
);
tree
arg01
;
if
(
kind0
==
'1'
)
if
(
kind0
==
'1'
||
code0
==
TRUTH_NOT_EXPR
)
return
fold
(
build1
(
code0
,
type
,
fold
(
build1
(
CLEANUP_POINT_EXPR
,
TREE_TYPE
(
arg00
),
arg00
))));
if
((
kind0
==
'<'
||
kind0
==
'2'
)
&&
!
TREE_SIDE_EFFECTS
(
arg01
=
TREE_OPERAND
(
arg0
,
1
)))
return
fold
(
build
(
code0
,
type
,
fold
(
build1
(
CLEANUP_POINT_EXPR
,
TREE_TYPE
(
arg00
),
arg00
)),
arg01
));
if
(
kind0
==
'<'
||
kind0
==
'2'
||
code0
==
TRUTH_ANDIF_EXPR
||
code0
==
TRUTH_ORIF_EXPR
||
code0
==
TRUTH_AND_EXPR
||
code0
==
TRUTH_OR_EXPR
||
code0
==
TRUTH_XOR_EXPR
)
{
arg01
=
TREE_OPERAND
(
arg0
,
1
);
if
(
!
TREE_SIDE_EFFECTS
(
arg00
))
return
fold
(
build
(
code0
,
type
,
arg00
,
fold
(
build1
(
CLEANUP_POINT_EXPR
,
TREE_TYPE
(
arg01
),
arg01
))));
if
(
!
TREE_SIDE_EFFECTS
(
arg01
))
return
fold
(
build
(
code0
,
type
,
fold
(
build1
(
CLEANUP_POINT_EXPR
,
TREE_TYPE
(
arg00
),
arg00
)),
arg01
));
}
return
t
;
}
...
...
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