This is the mail archive of the gcc-patches@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]

Re: [lto] add skeleton for option processing


Ollie Wild wrote:
This patch adds skeleton code for processing options in lto1.  This
cleans up (but does not remove) the -Wall warning which started
occurring in the x86_64 tests after the last merge.  Instead of

"-Wall" is valid for Ada/C/C++/Fortran/Java/ObjC/ObjC++ but not for

they now print

"-Wall" is valid for Ada/C/C++/Fortran/Java/ObjC/ObjC++ but not for LTO

We can discuss whether it makes more sense to support -Wall with LTO
or modify abi-x86_64.exp to stop passing -Wall during linking.

In either case, several of us are working on changes now which will
require new command-line options, so I figured it's a good idea to
have this in place.

Ollie

2008-05-09 Ollie Wild <aaw@google.com>

* lang.opt: New file.
* lto-lang.c (lto_init_options): New function.
(lto_handle_option): New function.
(lto_init): Move initialization of flag_unit_at_a_time to
lto_init_options.
(LANG_HOOKS_INIT_OPTIONS): Define.
(LANG_HOOKS_HANDLE_OPTION): Define.
diego has a merge from the trunk in the oven, you should wait til he gets that committed but after that, you can commit this.

Kenny


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