[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 --- Comment #11 from Mark Wielaard --- I believe the intention of the DWARF5 spec as that dir entry zero would be equal to the comp_dir attribute of the CU and file entry zero would be equal to the name attribute of the CU. Also, although the s

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org --- Commen

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 --- Comment #8 from Jakub Jelinek --- See the "Note that if a .debug_line_str section is present, both the compilation unit debugging information entry and the line number header can share a single copy of the current directory name string." and

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 --- Comment #7 from Jakub Jelinek --- That looks incorrect to me, the intent was that it is actually the same string, that is also why there is DW_FORM_line_strp so that it can actually use the same string rather than its copy.

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 --- Comment #6 from Eric Botcazou --- This comes from binutils: https://sourceware.org/pipermail/binutils/2021-November/118442.html and I don't think that there is any violation, the file_name is simply represented by a pair (DW_LNCT_path, DW_

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 --- Comment #4 from Jakub Jelinek --- Can't reproduce with current 11 branch either. Perhaps r12-1777-ga21dc9d1529b8a8071e36b22b6e8492fc2ce7d5a which has been backported to 11 in r11-8650-gf19b20de1b24d6b53479c6815316a5201b22775d as well?

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #3

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 Richard Biener changed: What|Removed |Added Keywords||needs-bisection Ever confirmed|0

[Bug debug/105088] Small DWARF 5 spec violation in line table when passing an absolute path

2022-03-28 Thread simon.marchi at polymtl dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105088 --- Comment #1 from Simon Marchi --- Looking at the .s, I see that gcc attempts to pass "/tmp/cwd/test.c" as the name of the file at index 0: .file 0 "/home/simark" "/tmp/cwd/test.c" If gas did put "/tmp/cwd/test.c" as the name in the line t