fix -fdebug-prefix-map without gas .file support
authorRichard Biener <rguenther@suse.de>
Thu, 27 Feb 2020 10:42:50 +0000 (11:42 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 27 Feb 2020 10:43:52 +0000 (11:43 +0100)
commitd12153046816f955e74943af7089d30de6a00e19
treef68600afdf02e6864b8982d42a2a294ad9db8477
parent1956773cc655dfcba8d310066d3f6585dd4b8972
fix -fdebug-prefix-map without gas .file support

This applies file mapping when emitting the directory table
directly instead of using the assemblers .file directive where
we already correctly apply the map.  Notably the non-assembler
path is used for the early debug emission for LTO.

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.
gcc/ChangeLog
gcc/dwarf2out.c
gcc/lto-opts.c
gcc/lto-streamer-out.c