diff options
author | Jakub Jelinek <jakub@redhat.com> | 2013-02-27 08:28:09 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-02-27 08:28:09 +0100 |
commit | dc3577989d23572bc6f695e791eeaad33cfe8f6a (patch) | |
tree | bd4cfc1abd9fbaa6e8743ef8ed88707b9b753706 /gcc/lto-wrapper.c | |
parent | f5c2cacaad0d670aee9993c31c0eb93887e49d33 (diff) | |
download | gcc-dc3577989d23572bc6f695e791eeaad33cfe8f6a.zip gcc-dc3577989d23572bc6f695e791eeaad33cfe8f6a.tar.gz gcc-dc3577989d23572bc6f695e791eeaad33cfe8f6a.tar.bz2 |
opts.h: Include obstack.h.
* opts.h: Include obstack.h.
(opts_concat): New prototype.
(opts_obstack): New declaration.
* opts.c (opts_concat): New function.
(opts_obstack): New variable.
(init_options_struct): Call gcc_init_obstack on opts_obstack.
(finish_options): Use opts_concat instead of concat
and XOBNEWVEC instead of XNEWVEC.
* opts-common.c (generate_canonical_option, decode_cmdline_option,
generate_option): Likewise.
* Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
* lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
From-SVN: r196305
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r-- | gcc/lto-wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 5293182..15a34dd 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -915,6 +915,8 @@ main (int argc, char *argv[]) { const char *p; + gcc_obstack_init (&opts_obstack); + p = argv[0] + strlen (argv[0]); while (p != argv[0] && !IS_DIR_SEPARATOR (p[-1])) --p; |