This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [LTO][PATCH] Save/restore selected command line options to/from LTO IL files
- From: Diego Novillo <dnovillo at google dot com>
- To: Simon Baldwin <simonb at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Feb 2009 16:26:54 -0500
- Subject: Re: [LTO][PATCH] Save/restore selected command line options to/from LTO IL files
- References: <20090209212141.7F4313FEF3C@localhost>
On Mon, Feb 9, 2009 at 16:21, Simon Baldwin <simonb@google.com> wrote:
> gcc/ChangeLog.lto
> 2009-02-09 Simon Baldwin <simonb@google.com>
>
> * lto-opts.h: New.
> * lto-opts.c: New.
> * lto-header.h (lto_section_type): Add LTO_section_opts.
> * opts.c: Include lto-opts.h.
> * (handle_option): Call lto_register_user_option for each
> valid option handled.
> * (decode_options): Clear registered options before the options
> handling loop.
> * lto-utils.c (lto_get_section_name): Add LTO_section_opts section.
> * lto-section-out.c: Include lto-opts.h.
> * (produce_asm_for_decls): Write saved options to the output
> object file.
> * Makefile.in (LTO_OPTS_H): New.
> * (OBJS-common): Add lto-opts.o.
> * (opts.o): Add dependency on LTO_OPTS_H.
> * (lto-section-out.o): Ditto.
> * (lto-opts.o): Dependencies for new modules.
>
> gcc/testsuite/ChangeLog.lto
> 2009-02-09 Simon Baldwin <simonb@google.com>
>
> * gcc.dg/lto/20090206-1_0.c: New.
> * gcc.dg/lto/20090206-2_0.c: New.
>
> gcc/lto/ChangeLog
> 2009-02-09 Simon Baldwin <simonb@google.com>
>
> * lto.c: Include lto-opts.h.
> * (lto_main): Clear file options at loop start, read any saved
> options from the first file handled, and re-issue options.
> * Makefile.in (lto.o): Add dependency on lto-opts.h.
OK.
Diego.