[Bug ipa/103449] [12 Regression] use-after-free in ipa_param_body_adjustments::prepare_debug_expressions(tree_node*) (ipa-param-manipulation.c:1283) since r12-4920-g1ece90ffa9ce63b4

jamborm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 29 18:22:18 GMT 2021


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

--- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> ---
In my defense, even in my old code, in the call

  m_dead_ssa_debug_equiv.put (dead_ssa, *d)

I would expect the load *d to be evaluated before the inline template
function put is invoked and it feels strange that it isn't.

Anyway, I have proposed your patch on the mailing list:

https://gcc.gnu.org/pipermail/gcc-patches/2021-November/585665.html


More information about the Gcc-bugs mailing list