[Bug debug/112726] Sometimes incorrect DW_AT_decl_file with -gdwarf-5 and -fdebug-prefix-map

2023-12-06 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112726 --- Comment #1 from Giuliano Procida --- Much of the initial report can be ignored, `llvm-dwarfdump` is buggy for DWARF 5 before version 15. Here's a much simpler statement: gcc -gdwarf-5 -fdebug-prefix-map=$(pwd)= -c foo.c is broken and the p

[Bug debug/112726] New: Sometimes incorrect DW_AT_decl_file with -gdwarf-5 and -fdebug-prefix-map

2023-11-27 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112726 Bug ID: 112726 Summary: Sometimes incorrect DW_AT_decl_file with -gdwarf-5 and -fdebug-prefix-map Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: no

[Bug c++/111788] g++ DWARF for void foo(...) missing unspecified parameters DIE

2023-11-08 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111788 --- Comment #4 from Giuliano Procida --- Also worth noting that while Clang gives virtual table entries (for struct X) this type in DWARF: int(** _vptr.X)(...) GCC gives them this type: int(** _vptr$X)() The different member names are an unf

[Bug debug/112372] GCC omits function location in DWARF at higher optimisation levels

2023-11-03 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112372 --- Comment #4 from Giuliano Procida --- The provided example was exactly my original test case. It's part of our test suite for https://android.googlesource.com/platform/external/stg/. I'm currently running multiple versions of GCC and Clang

[Bug debug/112372] GCC omits function location in DWARF at higher optimisation levels

2023-11-03 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112372 --- Comment #2 from Giuliano Procida --- The symbols are not aliased (which is what I thought might have happened with very aggressive optimisations). If they had been aliased, it would be much harder to give the symbols types.

[Bug debug/112372] New: GCC omits function location in DWARF at higher optimisation levels

2023-11-03 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112372 Bug ID: 112372 Summary: GCC omits function location in DWARF at higher optimisation levels Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/111788] g++ DWARF for void foo(...) missing unspecified parameters DIE

2023-10-13 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111788 --- Comment #3 from Giuliano Procida --- https://en.cppreference.com/w/cpp/language/variadic_arguments (see introduction and Notes) It's been allowed for longer than in C, but there is no portable way of accessing the arguments.

[Bug c++/111788] New: g++ DWARF for void foo(...) missing unspecified parameters DIE

2023-10-12 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111788 Bug ID: 111788 Summary: g++ DWARF for void foo(...) missing unspecified parameters DIE Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal

[Bug debug/111735] New: incorrect BTF representation of forward-declared enums

2023-10-09 Thread gprocida at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111735 Bug ID: 111735 Summary: incorrect BTF representation of forward-declared enums Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Co