From f52d37b6be5eae5ad3b0dfc0f736234777f51abc Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 19 Mar 2026 18:06:59 -0400 Subject: [PATCH 35/38] FIXME{needs ChangeLog update}: fix up to diagnostics: use label_text in diagnostics::option_id_manager --- gcc/lto-wrapper.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc index c300655b1d8..a8abbf22c6b 100644 --- a/gcc/lto-wrapper.cc +++ b/gcc/lto-wrapper.cc @@ -1381,7 +1381,7 @@ init_num_threads (void) void print_lto_docs_link () { - label_text url = label_text::take (global_dc->make_option_url (OPT_flto)); + label_text url = global_dc->get_option_url (OPT_flto); inform (UNKNOWN_LOCATION, "see the %{%<-flto%> option documentation%} for more information", url.get ()); @@ -2282,11 +2282,12 @@ public: { return true; } - char *make_option_name (diagnostics::option_id, - enum diagnostics::kind, - enum diagnostics::kind) const final override + label_text + get_option_name (diagnostics::option_id, + enum diagnostics::kind, + enum diagnostics::kind) const final override { - return nullptr; + return label_text::borrow (nullptr); } }; -- 2.49.0