https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106260
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jamborm at gcc dot
gnu.org
Last reconfirmed|2022-07-11 00:00:00 |2026-1-29
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Re-confirmed with the more relevant -O2 -fwhole-program -fno-toplevel-reorder
It seems we assume that unused functions are elided?
(gdb) p node->debug()
_ZN1SD2Ev/4 (S::~S())
Type: function definition analyzed
Visibility: semantic_interposition no_reorder prevailing_def_ironly
Aux: @0x54f49e0
References:
Referring:
Availability: local
Function flags: count:1073741824 (estimated locally) body local
indirect_call_target unlikely_executed
Called by:
Calls:
patch review got stuck, but it's Martins code, so assigning him.