[Bug c++/64346] gcc generates incorrect debug info for ctor/dtor

2024-11-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64346 --- Comment #6 from Jason Merrill --- (In reply to dehao from comment #3) > For AutoFDO, we actually needs symbols from the symbol table because > indirect call promotion needs the symbol name to find the right callee. I don't understand why the

[Bug c++/64346] gcc generates incorrect debug info for ctor/dtor

2019-11-19 Thread knight4553kai at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64346 knight4553kai at gmx dot com changed: What|Removed |Added CC||knight4553kai at gmx dot c

[Bug c++/64346] gcc generates incorrect debug info for ctor/dtor

2014-12-19 Thread ccoutant at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64346 --- Comment #4 from Cary Coutant --- I think the problem is that the decloning turns the C1 and C2 ctors into thunks, and GCC doesn't (yet) generate debug info for thunks, so when you inline the C4 into the C1 or C2, and inline that into foo, all

[Bug c++/64346] gcc generates incorrect debug info for ctor/dtor

2014-12-17 Thread dehao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64346 --- Comment #3 from dehao at gcc dot gnu.org --- For AutoFDO, we actually needs symbols from the symbol table because indirect call promotion needs the symbol name to find the right callee. You are right, ICF also causes trouble to AutoFDO profil

[Bug c++/64346] gcc generates incorrect debug info for ctor/dtor

2014-12-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64346 --- Comment #2 from Andrew Pinski --- >_ZN3ABCC4Ev That is the internal name of the function (it demangles to ABC::ABC() anyways) and the symbol does not need to be in the symbol table at all. We are going to run into this more with ICF also.

[Bug c++/64346] gcc generates incorrect debug info for ctor/dtor

2014-12-17 Thread dehao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64346 dehao at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2 CC|