summaryrefslogtreecommitdiff
path: root/gcc/java/constants.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-26 02:26:09 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-26 02:26:09 +0000
commit443b1b77fb626409914cf641a8e34e7740a048cc (patch)
tree1d29c7017bbff47e9722e9b0b853769c29366d8e /gcc/java/constants.c
parentf702522a4b9deb5a774b5a8816ae4866a0d80be4 (diff)
downloadgcc-443b1b77fb626409914cf641a8e34e7740a048cc.tar.gz
* constants.c (PUTN): Use memcpy, not bcopy.
* lex.c (java_read_char): Use memmove, not bcopy. * parse.y (java_parser_context_resume): Use memcpy, not bcopy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40836 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/constants.c')
-rw-r--r--gcc/java/constants.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/constants.c b/gcc/java/constants.c
index 0dcd715b2d9..59b8c4f16c4 100644
--- a/gcc/java/constants.c
+++ b/gcc/java/constants.c
@@ -214,7 +214,7 @@ find_methodref_index (cpool, decl)
#define PUT1(X) (*ptr++ = (X))
#define PUT2(X) (PUT1((X) >> 8), PUT1(X))
#define PUT4(X) (PUT2((X) >> 16), PUT2(X))
-#define PUTN(P, N) (bcopy(P, ptr, N), ptr += (N))
+#define PUTN(P, N) (memcpy(ptr, (P), (N)), ptr += (N))
/* Give the number of bytes needed in a .class file for the CPOOL
constant pool. Includes the 2-byte constant_pool_count. */