2019-03-19 Richard Biener <rguenther@suse.de>
PR debug/88389
* opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
From-SVN: r269800
+2019-03-19 Richard Biener <rguenther@suse.de>
+
+ PR debug/88389
+ * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
+
2019-03-19 Jan Hubicka <hubicka@ucw.cz>
PR lto/87809
"linker plugin");
opts->x_flag_fat_lto_objects = 1;
}
+
+ /* -gsplit-dwarf isn't compatible with LTO, see PR88389. */
+ if (opts->x_dwarf_split_debug_info)
+ {
+ inform (loc, "%<-gsplit-dwarf%> is not supported with LTO,"
+ " disabling");
+ opts->x_dwarf_split_debug_info = 0;
+ }
}
/* We initialize opts->x_flag_split_stack to -1 so that targets can set a