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.