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
b5c52586
Commit
b5c52586
authored
Aug 11, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fold): Don't fold (A op B ? A : C) if A is IEEE
floating point, because A might be -0.0 or NaN. From-SVN: r1793
parent
a6bf4347
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gcc/fold-const.c
+4
-1
No files found.
gcc/fold-const.c
View file @
b5c52586
...
...
@@ -4007,9 +4007,12 @@ fold (expr)
/* If we have A op B ? A : C, we may be able to convert this to a
simpler expression, depending on the operation and the values
of B and C. */
of B and C. IEEE floating point prevents this though,
because A or B might be -0.0 or a NaN. */
if
(
TREE_CODE_CLASS
(
TREE_CODE
(
arg0
))
==
'<'
&&
(
TARGET_FLOAT_FORMAT
!=
IEEE_FLOAT_FORMAT
||
TREE_CODE
(
TREE_TYPE
(
TREE_OPERAND
(
arg0
,
0
)))
!=
REAL_TYPE
)
&&
operand_equal_for_comparison_p
(
TREE_OPERAND
(
arg0
,
0
),
arg1
,
TREE_OPERAND
(
arg0
,
1
)))
{
...
...
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