OSDN Git Service

* Makefile.in (LIBS): Link in libiberty.a.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Sep 1998 23:54:10 +0000 (23:54 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Sep 1998 23:54:10 +0000 (23:54 +0000)
        * c-common.c, gcc.c, toplev.c:  Repalce (some) bcopy calls by memcpy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22508 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/Makefile.in
gcc/c-common.c
gcc/gcc.c
gcc/toplev.c

index 01893e9..82863b5 100644 (file)
@@ -1,3 +1,8 @@
+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
index f8b0581..45279b0 100644 (file)
@@ -547,7 +547,8 @@ HOST_LIBDEPS= $(HOST_PREFIX)$(HOST_OBSTACK) $(HOST_PREFIX)$(HOST_ALLOCA) $(HOST_
 
 # 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.
index 5879a85..a79d9d2 100644 (file)
@@ -270,7 +270,7 @@ combine_strings (strings)
                        ? 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
index f832ae2..799f3d7 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1884,7 +1884,7 @@ putenv (str)
   /* 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 */
@@ -4584,8 +4584,8 @@ is_directory (path1, path2, linker)
   /* 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;
index 86cbcf6..cc4d8d0 100644 (file)
@@ -2295,10 +2295,10 @@ push_float_handler (handler, old_handler)
 
   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;
 }