+2018-03-02 Richard Biener <rguenther@suse.de>
+
+ PR target/82005
+ * config/darwin.c (saved_debug_info_level): New static global.
+ (darwin_asm_lto_start): Disable debug info generation for LTO out.
+ (darwin_asm_lto_end): Restore debug info generation settings.
+
2018-03-01 Martin Liska <mliska@suse.cz>
PR sanitizer/82484
in darwin_end_file. */
static FILE *lto_asm_out_file, *saved_asm_out_file;
static char *lto_asm_out_name;
+static enum debug_info_levels saved_debug_info_level;
/* Prepare asm_out_file for LTO output. For darwin, this means hiding
asm_out_file and switching to an alternative output file. */
{
gcc_assert (! saved_asm_out_file);
saved_asm_out_file = asm_out_file;
+ saved_debug_info_level = debug_info_level;
+ debug_info_level = DINFO_LEVEL_NONE;
if (! lto_asm_out_name)
lto_asm_out_name = make_temp_file (".lto.s");
lto_asm_out_file = fopen (lto_asm_out_name, "a");
fclose (lto_asm_out_file);
asm_out_file = saved_asm_out_file;
saved_asm_out_file = NULL;
+ debug_info_level = saved_debug_info_level;
}
static void