diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-10-03 16:28:03 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-10-03 16:28:03 +0000 |
commit | 742a072ad0e351dbe5b483002142c8215597d386 (patch) | |
tree | 615f9978cd919bb37720136d37c5450da39cba5f /gcc/tree-pretty-print.c | |
parent | 2bd8ca2100715c6a8b1f7fa1288cf3166898e1fd (diff) | |
download | gcc-742a072ad0e351dbe5b483002142c8215597d386.zip gcc-742a072ad0e351dbe5b483002142c8215597d386.tar.gz gcc-742a072ad0e351dbe5b483002142c8215597d386.tar.bz2 |
gcc.c: Split up the driver's "main" into smaller functions
gcc/ChangeLog:
* gcc.c (class driver): New class.
(main): Reimplement in terms of driver::main, moving most of the
locals to be locals within individual methods of class driver.
The remaining locals "explicit_link_files", "decoded_options" and
"decoded_options_count" are used by multiple driver:: methods, and
so become member data. Doing so isolates the argc/argv reads and
writes. Replace "goto out" with a special exit code from
new method driver::prepare_infiles. Split out the old
implementation of main into the following...
(driver::main): New function, corresponding to the old "main"
implementation.
(driver::set_progname): New function, taken from the old
"main" implementation.
(driver::expand_at_files): Likewise.
(driver::decode_argv): Likewise.
(driver::global_initializations): Likewise.
(driver::build_multilib_strings): Likewise.
(driver::set_up_specs): Likewise.
(driver::putenv_COLLECT_GCC): Likewise.
(driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
(driver::handle_unrecognized_options): Likewise.
(driver::maybe_print_and_exit): Likewise.
(driver::prepare_infiles): Likewise.
(driver::do_spec_on_infiles): Likewise.
(driver::maybe_run_linker): Likewise.
(driver::final_actions): Likewise.
(driver::get_exit_code): Likewise.
From-SVN: r215861
Diffstat (limited to 'gcc/tree-pretty-print.c')
0 files changed, 0 insertions, 0 deletions