summaryrefslogtreecommitdiff
path: root/gcc/java/constants.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-03-26 02:26:09 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-03-26 02:26:09 +0000
commitcb9b7a8c9f080833c95afd184c25e372b43797d8 (patch)
tree1d29c7017bbff47e9722e9b0b853769c29366d8e /gcc/java/constants.c
parent730e15561d35b15a74b45688d40c9639e077dbca (diff)
downloadgcc-cb9b7a8c9f080833c95afd184c25e372b43797d8.tar.gz
constants.c (PUTN): Use memcpy, not bcopy.
* 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. From-SVN: r40836
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. */