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
7cf5c9e1
Commit
7cf5c9e1
authored
Nov 24, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Nov 24, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash in fold_range_test
From-SVN: r37712
parent
ff6534ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
gcc/ChangeLog
+2
-0
gcc/fold-const.c
+1
-0
No files found.
gcc/ChangeLog
View file @
7cf5c9e1
2000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
* fold-const.c (fold_range_test): Avoid crash if LHS or RHS is null.
* reload1.c (conflicts_with_override): New function.
(emit_input_reload_insns): Use it to tighten test for validity
of substituting into output of previous insn.
...
...
gcc/fold-const.c
View file @
7cf5c9e1
...
...
@@ -3780,6 +3780,7 @@ fold_range_test (exp)
short-circuited branch and the underlying object on both sides
is the same, make a non-short-circuit operation. */
else
if
(
BRANCH_COST
>=
2
&&
lhs
!=
0
&&
rhs
!=
0
&&
(
TREE_CODE
(
exp
)
==
TRUTH_ANDIF_EXPR
||
TREE_CODE
(
exp
)
==
TRUTH_ORIF_EXPR
)
&&
operand_equal_p
(
lhs
,
rhs
,
0
))
...
...
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