summaryrefslogtreecommitdiff
path: root/gcc/prefix.c
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-05 08:30:39 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-05 08:30:39 +0000
commit60d3ce89ef593464a2aea48847cb15b621e06304 (patch)
treec446a5fa05a9058d5c1d17eb778e9577703f35ed /gcc/prefix.c
parentcb6e3ae1eeaa3c4127c38cc18ba6a2145e0dde68 (diff)
downloadgcc-60d3ce89ef593464a2aea48847cb15b621e06304.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45400 138bc75d-0d04-0410-961f-82ee72b054a4
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 526754819f4..ddf50985c84 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 *