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
af452a2b
Commit
af452a2b
authored
19 years ago
by
Steve Ellcey
Committed by
Steve Ellcey
19 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* io/read.c (set_integer): Use memcpy to fill buffer.
From-SVN: r103687
parent
e6494c94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
libgfortran/ChangeLog
+4
-0
libgfortran/io/read.c
+20
-5
No files found.
libgfortran/ChangeLog
View file @
af452a2b
2005-08-31 Steve Ellcey <sje@cup.hp.com>
* io/read.c (set_integer): Use memcpy to fill buffer.
2005-08-31 Steve Ellcey <sje@cup.hp.com>
PR target/23556
* io/read.c (convert_real): Use memcpy to fill buffer.
...
...
This diff is collapsed.
Click to expand it.
libgfortran/io/read.c
View file @
af452a2b
...
...
@@ -49,20 +49,35 @@ set_integer (void *dest, GFC_INTEGER_LARGEST value, int length)
{
#ifdef HAVE_GFC_INTEGER_16
case
16
:
*
((
GFC_INTEGER_16
*
)
dest
)
=
value
;
{
GFC_INTEGER_16
tmp
=
value
;
memcpy
(
dest
,
(
void
*
)
&
tmp
,
length
);
}
break
;
#endif
case
8
:
*
((
GFC_INTEGER_8
*
)
dest
)
=
value
;
{
GFC_INTEGER_8
tmp
=
value
;
memcpy
(
dest
,
(
void
*
)
&
tmp
,
length
);
}
break
;
case
4
:
*
((
GFC_INTEGER_4
*
)
dest
)
=
value
;
{
GFC_INTEGER_4
tmp
=
value
;
memcpy
(
dest
,
(
void
*
)
&
tmp
,
length
);
}
break
;
case
2
:
*
((
GFC_INTEGER_2
*
)
dest
)
=
value
;
{
GFC_INTEGER_2
tmp
=
value
;
memcpy
(
dest
,
(
void
*
)
&
tmp
,
length
);
}
break
;
case
1
:
*
((
GFC_INTEGER_1
*
)
dest
)
=
value
;
{
GFC_INTEGER_1
tmp
=
value
;
memcpy
(
dest
,
(
void
*
)
&
tmp
,
length
);
}
break
;
default:
internal_error
(
"Bad integer kind"
);
...
...
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