diff options
author | Per Bothner <bothner@cygnus.com> | 1998-09-20 23:54:10 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-09-20 17:54:10 -0600 |
commit | 7e2231e759e0cd8ea6e911791513b0a96c2e143f (patch) | |
tree | 6dbf4c903b58e66ef78b25007330334ab7fb3031 /gcc | |
parent | c93b03c2d88093f850864506550044b47bf2ca29 (diff) | |
download | gcc-7e2231e759e0cd8ea6e911791513b0a96c2e143f.zip gcc-7e2231e759e0cd8ea6e911791513b0a96c2e143f.tar.gz gcc-7e2231e759e0cd8ea6e911791513b0a96c2e143f.tar.bz2 |
Makefile.in (LIBS): Link in libiberty.a.
* Makefile.in (LIBS): Link in libiberty.a.
* c-common.c, gcc.c, toplev.c: Repalce (some) bcopy calls by memcpy.
From-SVN: r22508
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/Makefile.in | 3 | ||||
-rw-r--r-- | gcc/c-common.c | 2 | ||||
-rw-r--r-- | gcc/gcc.c | 6 | ||||
-rw-r--r-- | gcc/toplev.c | 4 |
5 files changed, 13 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 01893e9..82863b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/Makefile.in b/gcc/Makefile.in index f8b0581..45279b0 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -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. diff --git a/gcc/c-common.c b/gcc/c-common.c index 5879a85..a79d9d2 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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 @@ -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; diff --git a/gcc/toplev.c b/gcc/toplev.c index 86cbcf6..cc4d8d0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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; } |