From c0cdef59af5cc7fb67dc8ad4fc501ac47ab88aaf Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 23 Jul 2019 09:31:50 +0200 Subject: [PATCH] Use -flto instead of -flto=N in DWARF producer string. 2019-07-23 Martin Liska * dwarf2out.c (gen_producer_string): Canonize -flto=N to -flto in dwarf producer string. From-SVN: r273717 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad612c2e4fe..3e8953fc097 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-23 Martin Liska + + * dwarf2out.c (gen_producer_string): Canonize -flto=N + to -flto in dwarf producer string. + 2019-07-23 Richard Biener * tree-cfg.c (label_for_bb): Remove global var. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0449c2b2912..aa7fd7eb465 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -24460,6 +24460,13 @@ gen_producer_string (void) case OPT_fchecking_: /* Ignore these. */ continue; + case OPT_flto_: + { + const char *lto_canonical = "-flto"; + switches.safe_push (lto_canonical); + len += strlen (lto_canonical) + 1; + break; + } default: if (cl_options[save_decoded_options[j].opt_index].flags & CL_NO_DWARF_RECORD) -- 2.30.2