diff options
author | Richard Biener <rguenther@suse.de> | 2020-02-27 11:42:50 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-02-27 11:43:52 +0100 |
commit | d12153046816f955e74943af7089d30de6a00e19 (patch) | |
tree | f68600afdf02e6864b8982d42a2a294ad9db8477 /gcc/dwarf2out.c | |
parent | 1956773cc655dfcba8d310066d3f6585dd4b8972 (diff) | |
download | gcc-d12153046816f955e74943af7089d30de6a00e19.zip gcc-d12153046816f955e74943af7089d30de6a00e19.tar.gz gcc-d12153046816f955e74943af7089d30de6a00e19.tar.bz2 |
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.
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1fcb19a..bb45279 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -12101,8 +12101,9 @@ file_name_acquire (dwarf_file_data **slot, file_name_acquire_data *fnad) 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; |