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
acbdd7dd
Commit
acbdd7dd
authored
Apr 21, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(check_float_value): Cast args of bcopy to avoid warnings.
From-SVN: r11860
parent
d42d380a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
gcc/config/alpha/alpha.c
+7
-5
No files found.
gcc/config/alpha/alpha.c
View file @
acbdd7dd
...
@@ -2270,27 +2270,29 @@ check_float_value (mode, d, overflow)
...
@@ -2270,27 +2270,29 @@ check_float_value (mode, d, overflow)
{
{
REAL_VALUE_TYPE
r
;
REAL_VALUE_TYPE
r
;
bcopy
(
d
,
&
r
,
sizeof
(
REAL_VALUE_TYPE
));
bcopy
(
(
char
*
)
d
,
(
char
*
)
&
r
,
sizeof
(
REAL_VALUE_TYPE
));
if
(
REAL_VALUES_LESS
(
float_values
[
0
],
r
))
if
(
REAL_VALUES_LESS
(
float_values
[
0
],
r
))
{
{
bcopy
(
&
float_values
[
0
],
d
,
sizeof
(
REAL_VALUE_TYPE
));
bcopy
((
char
*
)
&
float_values
[
0
],
(
char
*
)
d
,
sizeof
(
REAL_VALUE_TYPE
));
return
1
;
return
1
;
}
}
else
if
(
REAL_VALUES_LESS
(
r
,
float_values
[
1
]))
else
if
(
REAL_VALUES_LESS
(
r
,
float_values
[
1
]))
{
{
bcopy
(
&
float_values
[
1
],
d
,
sizeof
(
REAL_VALUE_TYPE
));
bcopy
((
char
*
)
&
float_values
[
1
],
(
char
*
)
d
,
sizeof
(
REAL_VALUE_TYPE
));
return
1
;
return
1
;
}
}
else
if
(
REAL_VALUES_LESS
(
dconst0
,
r
)
else
if
(
REAL_VALUES_LESS
(
dconst0
,
r
)
&&
REAL_VALUES_LESS
(
r
,
float_values
[
2
]))
&&
REAL_VALUES_LESS
(
r
,
float_values
[
2
]))
{
{
bcopy
(
&
dconst0
,
d
,
sizeof
(
REAL_VALUE_TYPE
));
bcopy
(
(
char
*
)
&
dconst0
,
(
char
*
)
d
,
sizeof
(
REAL_VALUE_TYPE
));
return
1
;
return
1
;
}
}
else
if
(
REAL_VALUES_LESS
(
r
,
dconst0
)
else
if
(
REAL_VALUES_LESS
(
r
,
dconst0
)
&&
REAL_VALUES_LESS
(
float_values
[
3
],
r
))
&&
REAL_VALUES_LESS
(
float_values
[
3
],
r
))
{
{
bcopy
(
&
dconst0
,
d
,
sizeof
(
REAL_VALUE_TYPE
));
bcopy
(
(
char
*
)
&
dconst0
,
(
char
*
)
d
,
sizeof
(
REAL_VALUE_TYPE
));
return
1
;
return
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