aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-03-05 06:01:13 +0000
committerJakub Jelinek <jakub@redhat.com>2013-03-05 06:01:13 +0000
commit4e0cc541fe86c48d36a68a07f845191a42f5b9cc (patch)
tree649d75376ecf5d33772557e4545a55a3e2b48c45 /gcc/opts.c
parent0432fbd7b4e1d8b3f6f0f0109a44932d3d6a38eb (diff)
PR bootstrap/56509
* opts.c (opts_obstack, opts_concat): Moved to... * opts-common.c (opts_obstack, opts_concat): ... here. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@196449 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index d569b5e7e90..45b12fecb8e 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -268,40 +268,6 @@ add_comma_separated_to_vector (void **pvec, const char *arg)
*pvec = v;
}
-/* Like libiberty concat, but allocate using opts_obstack. */
-
-char *
-opts_concat (const char *first, ...)
-{
- char *newstr, *end;
- size_t length = 0;
- const char *arg;
- va_list ap;
-
- /* First compute the size of the result and get sufficient memory. */
- va_start (ap, first);
- for (arg = first; arg; arg = va_arg (ap, const char *))
- length += strlen (arg);
- newstr = XOBNEWVEC (&opts_obstack, char, length + 1);
- va_end (ap);
-
- /* Now copy the individual pieces to the result string. */
- va_start (ap, first);
- for (arg = first, end = newstr; arg; arg = va_arg (ap, const char *))
- {
- length = strlen (arg);
- memcpy (end, arg, length);
- end += length;
- }
- *end = '\0';
- va_end (ap);
- return newstr;
-}
-
-/* Obstack for option strings. */
-
-struct obstack opts_obstack;
-
/* Initialize OPTS and OPTS_SET before using them in parsing options. */
void