aboutsummaryrefslogtreecommitdiff
path: root/gcc/tlink.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2005-06-06 21:14:31 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2005-06-06 21:14:31 +0000
commit7973fd2aeddbdd9fc4595ef2d34fa57d1c3c75cb (patch)
treede88f6962c15670e120cf115d8582da8df7bd7b9 /gcc/tlink.c
parent4b794eaf73ef8df7689d1e9de146e00398f2d1fd (diff)
downloadgcc-7973fd2aeddbdd9fc4595ef2d34fa57d1c3c75cb.zip
gcc-7973fd2aeddbdd9fc4595ef2d34fa57d1c3c75cb.tar.gz
gcc-7973fd2aeddbdd9fc4595ef2d34fa57d1c3c75cb.tar.bz2
libiberty.h (XOBFINISH): New.
libiberty/ 2005-06-06 Gabriel Dos Reis <gdr@integrable-solutions.net> * libiberty.h (XOBFINISH): New. gcc/ 2005-06-06 Gabriel Dos Reis <gdr@integrable-solutions.net> * c-lex.c (lex_string): Use XOBFINISH. * collect2.c (extract_string, dump_file): Likewise. * dbxout.c (dbxout_finish_complex_stabs): Likewise. * gcc.c (init_spec, build_search_list, convert_filename, set_collect_gcc_options, do_spec_2, do_spec_1, main): * Likewise. * genpreds.c (write_predicate_subfunction): Likewise. * genflags.c (main): Likewise. * read-rtl.c (mode_attr_index, apply_macro_to_string, join_c_conditions, read_quoted_string, read_braced_string, read_rtx_1): Likewise. * stringpool.c (ggc_alloc_string): Likewise. * tlink.c (obstack_fgets, recompile_files): Likewise. From-SVN: r100678
Diffstat (limited to 'gcc/tlink.c')
-rw-r--r--gcc/tlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tlink.c b/gcc/tlink.c
index 44e516b..e8fe756 100644
--- a/gcc/tlink.c
+++ b/gcc/tlink.c
@@ -311,7 +311,7 @@ obstack_fgets (FILE *stream, struct obstack *ob)
if (obstack_object_size (ob) == 0)
return NULL;
obstack_1grow (ob, '\0');
- return obstack_finish (ob);
+ return XOBFINISH (ob, char *);
}
static char *
@@ -528,7 +528,7 @@ recompile_files (void)
done:
obstack_ptr_grow (&temporary_obstack, f->main);
obstack_ptr_grow (&temporary_obstack, NULL);
- argv = obstack_finish (&temporary_obstack);
+ argv = XOBFINISH (&temporary_obstack, char **);
if (tlink_verbose)
fprintf (stderr, _("collect: recompiling %s\n"), f->main);