* Makefile.in (LIBS): Link in libiberty.a.
* c-common.c, gcc.c, toplev.c: Repalce (some) bcopy calls by memcpy.
From-SVN: r22508
+Mon Sep 21 00:52:12 1998 Per Bothner <bothner@cygnus.com>
+
+ * Makefile.in (LIBS): Link in libiberty.a.
+ * c-common.c, gcc.c, toplev.c: Repalce (some) bcopy calls by memcpy.
+
Sun Sep 20 23:28:11 1998 Richard Henderson <rth@cygnus.com>
* reload1.c (emit_reload_insns): Accept a new arg for the bb. Use
# How to link with both our special library facilities
# and the system's installed libraries.
-LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(VFPRINTF) $(DOPRINT) $(CLIB)
+LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(VFPRINTF) $(DOPRINT) $(CLIB) \
+ ../libiberty/libiberty.a
# Likewise, for use in the tools that must run on this machine
# even if we are cross-building GCC.
? wchar_bytes : 1));
if ((TREE_TYPE (t) == wchar_array_type_node) == wide_flag)
{
- bcopy (TREE_STRING_POINTER (t), q, len);
+ memcpy (q, TREE_STRING_POINTER (t), len);
q += len;
}
else
/* Add a new environment variable */
environ = (char **) xmalloc (sizeof (char *) * (num_envs+2));
*environ = str;
- bcopy ((char *) old_environ, (char *) (environ + 1),
+ memcpy ((char *) (environ + 1), (char *) old_environ,
sizeof (char *) * (num_envs+1));
#endif /* VMS */
/* Construct the path from the two parts. Ensure the string ends with "/.".
The resulting path will be a directory even if the given path is a
symbolic link. */
- bcopy (path1, path, len1);
- bcopy (path2, path + len1, len2);
+ memcpy (path, path1, len1);
+ memcpy (path + len1, path2, len2);
cp = path + len1 + len2;
if (cp[-1] != '/' && cp[-1] != DIR_SEPARATOR)
*cp++ = DIR_SEPARATOR;
float_handled = 1;
if (was_handled)
- bcopy ((char *) float_handler, (char *) old_handler,
+ memcpy ((char *) old_handler, (char *) float_handler,
sizeof (float_handler));
- bcopy ((char *) handler, (char *) float_handler, sizeof (float_handler));
+ memcpy ((char *) float_handler, (char *) handler, sizeof (float_handler));
return was_handled;
}