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
e2aa1185
Commit
e2aa1185
authored
Sep 30, 1993
by
Jan Brittenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(bc_end_function, seg_data): Use bcopy instead of memcpy.
From-SVN: r5538
parent
cc5edac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
gcc/bc-emit.c
+2
-3
No files found.
gcc/bc-emit.c
View file @
e2aa1185
...
...
@@ -210,7 +210,7 @@ seg_data (seg, data, size)
seg
->
data
=
xrealloc
(
seg
->
data
,
seg
->
alloc
);
}
memcpy
(
seg
->
data
+
seg
->
size
,
data
,
size
);
bcopy
(
data
,
seg
->
data
+
seg
->
size
,
size
);
seg
->
size
+=
size
;
}
...
...
@@ -604,8 +604,7 @@ bc_end_function ()
if
(
ref
->
label
->
defined
)
{
addr
=
ref
->
label
->
offset
;
memcpy
(
bytecode
->
data
+
ref
->
offset
,
/* incest */
(
char
*
)
&
addr
,
sizeof
addr
);
bcopy
(
&
addr
,
bytecode
->
data
+
ref
->
offset
,
sizeof
addr
);
}
/* Free the chains of labelrefs and labeldefs. */
...
...
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