https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985
Richard Biener changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
*
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.
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|
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
>
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
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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
12 matches
Mail list logo