This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/44965] lto option code breaks file format with each added option


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44965

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-11-03 14:46:40 UTC ---
Author: rguenth
Date: Thu Nov  3 14:46:26 2011
New Revision: 180827

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180827
Log:
2011-11-03  Richard Guenther  <rguenther@suse.de>

    PR lto/44965
    * lto-opts.c: Re-implement.
    * lto-streamer.h (lto_register_user_option): Remove.
    (lto_read_file_options): Likewise.
    (lto_reissue_options): Likewise.
    (lto_clear_user_options): Likewise.
    (lto_clear_file_options): Likewise.
    * opts-global.c (post_handling_callback): Remove.
    (set_default_handlers): Do not set post_handling_callback.
    (decode_options): Remove LTO specific code.
    * lto-wrapper.c (merge_and_complain): New function.
    (run_gcc): Read all input file options and
    prepend a merged set before the linker driver options.
    * gcc.c (driver_post_handling_callback): Remove.
    (set_option_handlers): Do not set post_handling_callback.
    * opts-common.c (handle_option): Do not call post_handling_callback.
    * opts.h (struct cl_option_handlers): Remove post_handling_callback.

    lto/
    * lto-lang.c (lto_post_options): Do not read file options.
    * lto.c (lto_read_all_file_options): Remove.
    (lto_init): Call lto_set_in_hooks here.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcc.c
    trunk/gcc/lto-opts.c
    trunk/gcc/lto-streamer.h
    trunk/gcc/lto-wrapper.c
    trunk/gcc/lto/ChangeLog
    trunk/gcc/lto/lto-lang.c
    trunk/gcc/lto/lto.c
    trunk/gcc/opts-common.c
    trunk/gcc/opts-global.c
    trunk/gcc/opts.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]