aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorPer Bothner <bothner@cygnus.com>1998-09-20 23:54:10 +0000
committerJeff Law <law@gcc.gnu.org>1998-09-20 17:54:10 -0600
commit7e2231e759e0cd8ea6e911791513b0a96c2e143f (patch)
tree6dbf4c903b58e66ef78b25007330334ab7fb3031 /gcc/gcc.c
parentc93b03c2d88093f850864506550044b47bf2ca29 (diff)
downloadgcc-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/gcc.c')
-rw-r--r--gcc/gcc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index f832ae2..799f3d7 100644
--- 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;