On 2/21/20 5:02 AM, Richard Biener wrote:
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.

Bootstrapped and tested on x86_64-unknown-linux-gnu.

OK for trunk?

OK.

Thanks,
Richard.

2020-02-21  Mark Williams  <mwilli...@fb.com>

        * dwarf2out.c (file_name_acquire): Call remap_debug_filename.
---
  gcc/dwarf2out.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 577be3d52d3..ba9da0f2cc2 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -12205,8 +12205,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;

Reply via email to