This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/65797] [5.0 regression] IPA ICF causes function to be emitted with no debug line info


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65797

--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> ---
Hi,
the ICF wrapper are created same way as thunks (by expand_thunk) which probably
suppress debug info because we do not want to see it for thunks. I suppose it
is:
DECL_IGNORED_P (thunk_fndecl) = 1
I suppose we can add a parameter that will enable debug info production and
pass it
as true via the create_wrapper path (can't hack it right now as I am on a trip
in China)
I am adding Martin to CC.

In many cases we however create a wrapper where keeping function is backtrace
is even harder. If go needs functions in backtrace even in this case (when they
are not exported nor have address taken) perhaps we have to disable ICF?
We may add a way to disable ICF per function basis.

Honza


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]