https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67163
--- Comment #5 from Andrew Pinski ---
*** Bug 67162 has been marked as a duplicate of this bug. ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67163
--- Comment #4 from dehao at gcc dot gnu.org ---
Right, in -g2 binary debug info, the decl_file is pointing to the header file
in which the function is declared. However, if the definition is available, it
makes more sense to point decl_file and d
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67163
--- Comment #3 from Andrew Pinski ---
> g2 generates incorrect decl_line (150 is the decl_line for another function:
> addValue)
You did paste the full debug info as the file numbers are way different between
the two.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67163
--- Comment #2 from dehao at gcc dot gnu.org ---
Created attachment 36158
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36158&action=edit
preprocessed file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67163
--- Comment #1 from dehao at gcc dot gnu.org ---
Created attachment 36157
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36157&action=edit
preprocessed file