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
4b8a0062
Commit
4b8a0062
authored
Apr 25, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fold-convert): Use assignment, instead of initializing, aggregate
local variable REAL_VALUE_TYPE. From-SVN: r7146
parent
4791d99b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
gcc/fold-const.c
+8
-3
No files found.
gcc/fold-const.c
View file @
4b8a0062
...
...
@@ -1584,10 +1584,15 @@ fold_convert (t, arg1)
#if !defined (REAL_IS_NOT_DOUBLE) || defined (REAL_ARITHMETIC)
else
if
(
TREE_CODE
(
arg1
)
==
REAL_CST
)
{
REAL_VALUE_TYPE
x
=
TREE_REAL_CST
(
arg1
);
REAL_VALUE_TYPE
l
=
real_value_from_int_cst
(
TYPE_MIN_VALUE
(
type
));
REAL_VALUE_TYPE
u
=
real_value_from_int_cst
(
TYPE_MAX_VALUE
(
type
));
/* Don't initialize these, use assignments.
Initialized local aggregates don't work on old compilers. */
REAL_VALUE_TYPE
x
;
REAL_VALUE_TYPE
l
;
REAL_VALUE_TYPE
u
;
x
=
TREE_REAL_CST
(
arg1
);
l
=
real_value_from_int_cst
(
TYPE_MIN_VALUE
(
type
));
u
=
real_value_from_int_cst
(
TYPE_MAX_VALUE
(
type
));
/* See if X will be in range after truncation towards 0.
To compensate for truncation, move the bounds away from 0,
but reject if X exactly equals the adjusted bounds. */
...
...
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