https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112372
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2025-03-25 00:00:00 |2025-11-28
Priority|P3 |P2
Keywords| |missed-optimization
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
expand_thunk (node=<cgraph_node * 0x7ffff69d0220 "y"/1>,
output_asm_thunks=false, force_gimple_thunk=true)
at ../../src/gcc/gcc/symtab-thunks.cc:431
does
/* We need to force DECL_IGNORED_P when the thunk is created
after early debug was run. */
if (force_gimple_thunk)
DECL_IGNORED_P (thunk_fndecl) = 1;
but then we decide to inline x into y but no debug info is created anymore
for the concrete instance. Why do we inline into a thunk?
The above code was added with r9-3403-ga1a0e08d63b3b1
When I remove it I get proper debug info for y.