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
db7e5239
Commit
db7e5239
authored
32 years ago
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
entered into RCS
From-SVN: r1559
parent
d75e62a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/tree.c
+3
-3
No files found.
gcc/tree.c
View file @
db7e5239
...
...
@@ -1107,7 +1107,7 @@ real_value_from_int_cst (i)
#ifdef REAL_ARITHMETIC
REAL_VALUE_FROM_INT
(
d
,
TREE_INT_CST_LOW
(
i
),
TREE_INT_CST_HIGH
(
i
));
#else
/* not REAL_ARITHMETIC */
if
(
TREE_INT_CST_HIGH
(
i
)
<
0
)
if
(
TREE_INT_CST_HIGH
(
i
)
<
0
&&
!
TREE_UNSIGNED
(
TREE_TYPE
(
i
))
)
{
d
=
(
double
)
(
~
TREE_INT_CST_HIGH
(
i
));
d
*=
((
double
)
((
HOST_WIDE_INT
)
1
<<
(
HOST_BITS_PER_WIDE_INT
/
2
))
...
...
@@ -1117,7 +1117,7 @@ real_value_from_int_cst (i)
}
else
{
d
=
(
double
)
TREE_INT_CST_HIGH
(
i
);
d
=
(
double
)
(
unsigned
HOST_WIDE_INT
)
TREE_INT_CST_HIGH
(
i
);
d
*=
((
double
)
((
HOST_WIDE_INT
)
1
<<
(
HOST_BITS_PER_WIDE_INT
/
2
))
*
(
double
)
((
HOST_WIDE_INT
)
1
<<
(
HOST_BITS_PER_WIDE_INT
/
2
)));
d
+=
(
double
)
(
unsigned
HOST_WIDE_INT
)
TREE_INT_CST_LOW
(
i
);
...
...
@@ -1140,7 +1140,7 @@ build_real_from_int_cst (type, i)
v
=
make_node
(
REAL_CST
);
TREE_TYPE
(
v
)
=
type
;
d
=
real_value_from_int_cst
(
i
);
d
=
REAL_VALUE_TRUNCATE
(
TYPE_MODE
(
type
),
real_value_from_int_cst
(
i
)
);
/* 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. */
#ifdef CHECK_FLOAT_VALUE
...
...
This diff is collapsed.
Click to expand it.
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