[Bug lto/108534] LTO streamer does not remap source directory

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 25 00:13:52 GMT 2023


--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
          const char *remapped = remap_debug_filename (xloc.file);
          if (ob->emit_pwd && remapped && !IS_ABSOLUTE_PATH (remapped))
              stream_pwd = true;
              ob->emit_pwd = false;
          bp_pack_value (bp, stream_pwd, 1);
          if (stream_pwd)
            bp_pack_string (ob, bp, get_src_pwd (), true);

It specifically streams out the pwd if there was a remapping happening
and if the remapping was not an absolute path ....

So what options are being passed here? is the remapping in one case to a
relative path and then the cwd also gets remapped? Is that also being remapped
to a relative path?

More information about the Gcc-bugs mailing list