[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #11 from Richard Biener --- Author: rguenth Date: Mon Oct 24 11:57:27 2016 New Revision: 241473 URL: https://gcc.gnu.org/viewcvs?rev=241473=gcc=rev Log: 2016-10-24 Ximin Luo PR debug/77985 *

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #10 from Richard Biener --- Please post the patch to gcc-patches@ where other people can see this and comment.

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread infinity0 at pwned dot gg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 infinity0 at pwned dot gg changed: What|Removed |Added Attachment #39812|0 |1 is obsolete|

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread infinity0 at pwned dot gg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #8 from infinity0 at pwned dot gg --- (In reply to Richard Biener from comment #6) > So I just fixed the bug here, but yes, I don't know about the design > decision. I suppose CWD was decided to be useless in case of an absolute >

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread infinity0 at pwned dot gg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #7 from infinity0 at pwned dot gg --- Created attachment 39812 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39812=edit Emit DW_AT_comp_dir even if filename is an absolute path Suggested patch attached, with a test case. Note

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #6 from Richard Biener --- So I just fixed the bug here, but yes, I don't know about the design decision. I suppose CWD was decided to be useless in case of an absolute path to the file. I don't think the debug info preserves -I

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread infinity0 at pwned dot gg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #5 from infinity0 at pwned dot gg --- > Piggybacking a slightly unrelated issue: [..] Upon further investigation it seems that, whilst the debug-prefix-maps do not get applied to DW_AT_name filenames in the output of -dA, it does get

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread infinity0 at pwned dot gg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #4 from infinity0 at pwned dot gg --- Thanks for the quick response! What is the reason for "absolute paths are supposed to omit it"? I'm reading the DWARF spec and I can't find a mention of this anywhere. Even if DW_AT_name is

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #3 from Richard Biener --- But also: /* Add the name for the main input file now. We delayed this from dwarf2out_init to avoid complications with PCH. */ add_name_attribute (comp_unit_die (), remap_debug_filename

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef

2016-10-14 Thread infinity0 at pwned dot gg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985 --- Comment #1 from infinity0 at pwned dot gg --- Created attachment 39811 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39811=edit Reproduce the bug; set CC to try it with different compilers