summaryrefslogtreecommitdiffstats
path: root/gcc/bc-emit.c
diff options
context:
space:
mode:
authorbson <bson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-09-30 14:57:15 +0000
committerbson <bson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-09-30 14:57:15 +0000
commit904dc0364ceaca0b053f84b50331b30549252f74 (patch)
tree5dfd69de8c26c69d3c5d02a27aac6e0ee29141d3 /gcc/bc-emit.c
parentb5d70b4f16576e5c34d806799ff7753059174c3b (diff)
downloadppe42-gcc-904dc0364ceaca0b053f84b50331b30549252f74.tar.gz
ppe42-gcc-904dc0364ceaca0b053f84b50331b30549252f74.zip
(bc_end_function, seg_data): Use bcopy instead of memcpy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5538 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bc-emit.c')
-rw-r--r--gcc/bc-emit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/bc-emit.c b/gcc/bc-emit.c
index 06141c4ab4d..5071cf4e940 100644
--- a/gcc/bc-emit.c
+++ b/gcc/bc-emit.c
@@ -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. */
OpenPOWER on IntegriCloud