Make flow of option processing more readily visible
authorRichard Biener <rguenther@suse.de>
Tue, 5 Oct 2021 10:35:57 +0000 (12:35 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 5 Oct 2021 11:34:43 +0000 (13:34 +0200)
commit9856132b5b8a5e75a81763fe06e4b8c06011d870
tree095fc13b73ea781a3b32712dfd93920633197d7f
parenteded91050982dc4d7968fecf65469f1ef68854f9
Make flow of option processing more readily visible

This moves calls to various option processing stages to one place,
toplev::main.

2021-10-05  Richard Biener  <rguenther@suse.de>

* toplev.c (no_backend): Remove global var.
(process_options): Pass in no_backend, move post_options
langhook call to toplev::main.
(do_compile): Pass in no_backend, move process_options call
to toplev::main.
(toplev::run_self_tests): Check no_backend at the caller.
(toplev::main): Call post_options and process_options
split out from do_compile, do self-tests only if
no_backend is initialized.
gcc/toplev.c