From: Martin Liska Date: Tue, 23 Jul 2019 07:31:50 +0000 (+0200) Subject: Use -flto instead of -flto=N in DWARF producer string. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0cdef59af5cc7fb67dc8ad4fc501ac47ab88aaf;p=gcc.git 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 --- 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)