aboutsummaryrefslogtreecommitdiff
path: root/gcc/prefix.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-09-05 10:30:39 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2001-09-05 10:30:39 +0200
commita7939b1d587dc233a5d7d52a01437c7116ee39cd (patch)
treec446a5fa05a9058d5c1d17eb778e9577703f35ed /gcc/prefix.c
parent23296a363b18258e39639175b8b18e590c88003a (diff)
downloadgcc-a7939b1d587dc233a5d7d52a01437c7116ee39cd.zip
gcc-a7939b1d587dc233a5d7d52a01437c7116ee39cd.tar.gz
gcc-a7939b1d587dc233a5d7d52a01437c7116ee39cd.tar.bz2
invoke.texi (i386 Options): -mwide-multiply is not available anymore, remove the documentation.
* doc/invoke.texi (i386 Options): -mwide-multiply is not available anymore, remove the documentation. (i386 Options): Fix typo, cleanup index entries. * prefix.c (concat): Remove, we can use the version from liberty. From-SVN: r45400
Diffstat (limited to 'gcc/prefix.c')
-rw-r--r--gcc/prefix.c58
1 files changed, 1 insertions, 57 deletions
diff --git a/gcc/prefix.c b/gcc/prefix.c
index 5267548..ddf5098 100644
--- a/gcc/prefix.c
+++ b/gcc/prefix.c
@@ -1,5 +1,5 @@
/* Utility to update paths from internal to external forms.
- Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GCC.
@@ -108,62 +108,6 @@ get_key_value (key)
return prefix;
}
-/* Concatenate a sequence of strings, returning the result.
-
- This function is based on the one in libiberty. */
-
-char *
-concat VPARAMS ((const char *first, ...))
-{
- register int length;
- register char *newstr;
- register char *end;
- register const char *arg;
- va_list args;
-#ifndef ANSI_PROTOTYPES
- const char *first;
-#endif
-
- /* First compute the size of the result and get sufficient memory. */
-
- VA_START (args, first);
-#ifndef ANSI_PROTOTYPES
- first = va_arg (args, const char *);
-#endif
-
- arg = first;
- length = 0;
-
- while (arg != 0)
- {
- length += strlen (arg);
- arg = va_arg (args, const char *);
- }
-
- newstr = (char *) xmalloc (length + 1);
- va_end (args);
-
- /* Now copy the individual pieces to the result string. */
-
- VA_START (args, first);
-#ifndef ANSI_PROTOTYPES
- first = va_arg (args, char *);
-#endif
-
- end = newstr;
- arg = first;
- while (arg != 0)
- {
- while (*arg)
- *end++ = *arg++;
- arg = va_arg (args, const char *);
- }
- *end = '\000';
- va_end (args);
-
- return (newstr);
-}
-
/* Return a copy of a string that has been placed in the heap. */
static char *