aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto-wrapper.cc')
-rw-r--r--gcc/lto-wrapper.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc
index a92fed3..7c76635 100644
--- a/gcc/lto-wrapper.cc
+++ b/gcc/lto-wrapper.cc
@@ -1355,7 +1355,7 @@ void
print_lto_docs_link ()
{
bool print_url = global_dc->printer->url_format != URL_FORMAT_NONE;
- const char *url = global_dc->m_get_option_url (global_dc, OPT_flto);
+ const char *url = global_dc->make_option_url (OPT_flto);
pretty_printer pp;
pp.url_format = URL_FORMAT_DEFAULT;
@@ -2146,7 +2146,10 @@ main (int argc, char *argv[])
diagnostic_initialize (global_dc, 0);
diagnostic_color_init (global_dc);
diagnostic_urls_init (global_dc);
- global_dc->m_get_option_url = get_option_url;
+ global_dc->set_option_hooks (nullptr,
+ nullptr,
+ nullptr,
+ get_option_url);
if (atexit (lto_wrapper_cleanup) != 0)
fatal_error (input_location, "%<atexit%> failed");