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
0afbe93d
Commit
0afbe93d
authored
Mar 20, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(build_real): Add `overflow' var; pass to CHECK_FLOAT_VALUE.
From-SVN: r6829
parent
d8a6c3eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
gcc/tree.c
+3
-1
No files found.
gcc/tree.c
View file @
0afbe93d
...
@@ -1228,16 +1228,18 @@ build_real (type, d)
...
@@ -1228,16 +1228,18 @@ build_real (type, d)
REAL_VALUE_TYPE
d
;
REAL_VALUE_TYPE
d
;
{
{
tree
v
;
tree
v
;
int
overflow
=
0
;
/* Check for valid float value for this type on this target machine;
/* Check for valid float value for this type on this target machine;
if not, can print error message and store a valid value in D. */
if not, can print error message and store a valid value in D. */
#ifdef CHECK_FLOAT_VALUE
#ifdef CHECK_FLOAT_VALUE
CHECK_FLOAT_VALUE
(
TYPE_MODE
(
type
),
d
);
CHECK_FLOAT_VALUE
(
TYPE_MODE
(
type
),
d
,
overflow
);
#endif
#endif
v
=
make_node
(
REAL_CST
);
v
=
make_node
(
REAL_CST
);
TREE_TYPE
(
v
)
=
type
;
TREE_TYPE
(
v
)
=
type
;
TREE_REAL_CST
(
v
)
=
d
;
TREE_REAL_CST
(
v
)
=
d
;
TREE_OVERFLOW
(
v
)
=
TREE_CONSTANT_OVERFLOW
(
v
)
=
overflow
;
return
v
;
return
v
;
}
}
...
...
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