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
2af3e5fb
Commit
2af3e5fb
authored
Oct 19, 1999
by
Alasdair Baird
Committed by
Jeff Law
Oct 19, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
From-SVN: r30077
parent
b61a6c81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
gcc/ChangeLog
+4
-0
gcc/fold-const.c
+2
-1
No files found.
gcc/ChangeLog
View file @
2af3e5fb
Tue
Oct
19
01
:
26
:
48
1999
Alasdair
Baird
<
alasdair
@wildcat
.
demon
.
co
.
uk
>
*
fold
-
const
.
c
(
fold
)
:
Fix
thinko
in
x
+
(
-
0
)
->
x
transformation
.
Mon
Oct
18
15
:
19
:
41
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
*
basic
-
block
.
h
(
set_block_num
)
:
Declare
.
...
...
gcc/fold-const.c
View file @
2af3e5fb
...
...
@@ -4871,7 +4871,8 @@ fold (expr)
&&
real_zerop
(
arg1
))
return
non_lvalue
(
convert
(
type
,
arg0
));
/* x+(-0) equals x, even for IEEE. */
else
if
(
REAL_VALUE_MINUS_ZERO
(
TREE_REAL_CST
(
arg1
)))
else
if
(
TREE_CODE
(
arg1
)
==
REAL_CST
&&
REAL_VALUE_MINUS_ZERO
(
TREE_REAL_CST
(
arg1
)))
return
non_lvalue
(
convert
(
type
,
arg0
));
bit_rotate
:
...
...
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