+2020-02-27 Mark Williams <mwilliams@fb.com>
+
+ * dwarf2out.c (file_name_acquire): Call remap_debug_filename.
+ * lto-opts.c (lto_write_options): Drop -fdebug-prefix-map,
+ -ffile-prefix-map and -fmacro-prefix-map.
+ * lto-streamer-out.c: Include file-prefix-map.h.
+ (lto_output_location): Remap the file part of locations.
+
2020-02-27 Jakub Jelinek <jakub@redhat.com>
PR c/93949
fi = fnad->files + fnad->used_files++;
+ f = remap_debug_filename (d->filename);
+
/* Skip all leading "./". */
- f = d->filename;
while (f[0] == '.' && IS_DIR_SEPARATOR (f[1]))
f += 2;
case OPT_SPECIAL_input_file:
case OPT_dumpdir:
case OPT_fresolution_:
+ case OPT_fdebug_prefix_map_:
+ case OPT_ffile_prefix_map_:
+ case OPT_fmacro_prefix_map_:
continue;
default:
#include "omp-offload.h"
#include "print-tree.h"
#include "tree-dfa.h"
+#include "file-prefix-map.h" /* remap_debug_filename() */
static void lto_write_tree (struct output_block*, tree, bool);
if (ob->current_file != xloc.file)
{
- bp_pack_string (ob, bp, xloc.file, true);
+ bp_pack_string (ob, bp, remap_debug_filename (xloc.file), true);
bp_pack_value (bp, xloc.sysp, 1);
}
ob->current_file = xloc.file;