Commit c0cdef59 by Martin Liska Committed by Martin Liska

Use -flto instead of -flto=N in DWARF producer string.

2019-07-23  Martin Liska  <mliska@suse.cz>

	* dwarf2out.c (gen_producer_string): Canonize -flto=N
	to -flto in dwarf producer string.

From-SVN: r273717
parent 9215b328
2019-07-23 Martin Liska <mliska@suse.cz>
* dwarf2out.c (gen_producer_string): Canonize -flto=N
to -flto in dwarf producer string.
2019-07-23 Richard Biener <rguenther@suse.de> 2019-07-23 Richard Biener <rguenther@suse.de>
* tree-cfg.c (label_for_bb): Remove global var. * tree-cfg.c (label_for_bb): Remove global var.
......
...@@ -24460,6 +24460,13 @@ gen_producer_string (void) ...@@ -24460,6 +24460,13 @@ gen_producer_string (void)
case OPT_fchecking_: case OPT_fchecking_:
/* Ignore these. */ /* Ignore these. */
continue; continue;
case OPT_flto_:
{
const char *lto_canonical = "-flto";
switches.safe_push (lto_canonical);
len += strlen (lto_canonical) + 1;
break;
}
default: default:
if (cl_options[save_decoded_options[j].opt_index].flags if (cl_options[save_decoded_options[j].opt_index].flags
& CL_NO_DWARF_RECORD) & CL_NO_DWARF_RECORD)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment