DWARF: Call set_indirect_string on DW_MACINFO_start_file
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 24 Aug 2018 11:28:40 +0000 (11:28 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 24 Aug 2018 11:28:40 +0000 (04:28 -0700)
commit1ade64c9d8cd37c8db0a07383189f1719c7164da
treeecb04543e60bce1503be9cdf83a6e31013c80e0d
parente144a2b3066ecad2a7c934b1cd437d2afad0018f
DWARF: Call set_indirect_string on DW_MACINFO_start_file

Since -gsplit-dwarf -g3 will output filename as indirect string, call
set_indirect_string on DW_MACINFO_start_file for -gsplit-dwarf -g3.

gcc/

PR debug/79342
* dwarf2out.c (save_macinfo_strings): Call set_indirect_string
on DW_MACINFO_start_file for -gsplit-dwarf -g3.

gcc/testsuite/

PR debug/79342
* gcc.dg/pr79342.: New test.

From-SVN: r263831
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79342.c [new file with mode: 0644]