]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto: use diagnostics_context in print_lto_docs_link
authorMartin Liska <mliska@suse.cz>
Tue, 26 Apr 2022 07:56:37 +0000 (09:56 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 26 Apr 2022 13:46:52 +0000 (15:46 +0200)
commitcd4acb8cd9e45fd35664baa5b0a3150e479aae32
tree90bdd54aec83b0a2045f086e7ceab94331a23425
parent796b7cbac3d553a91d37c3961b9391fb7e19d0c6
lto: use diagnostics_context in print_lto_docs_link

Properly parse OPT_fdiagnostics_urls_ and then initialize both urls
and colors for global_dc. Doing that we would follow the configure
option --with-documentation-root-url, -fdiagnostics-urls is respected.
Plus we'll print colored warning and note messages.

PR lto/105364

gcc/ChangeLog:

* lto-wrapper.cc (print_lto_docs_link): Use global_dc.
(run_gcc): Parse OPT_fdiagnostics_urls_.
(main): Initialize global_dc.
gcc/lto-wrapper.cc