https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103449
--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> --- Making the hash_map big enough not to reallocate makes the valgrind complaint go away (of course, this is an experiment, not a suggested fix): diff --git a/gcc/ipa-param-manipulation.c b/gcc/ipa-param-manipulation.c index ff65dad0971..a4238b51725 100644 --- a/gcc/ipa-param-manipulation.c +++ b/gcc/ipa-param-manipulation.c @@ -1514,7 +1514,7 @@ ipa_param_body_adjustments vec<ipa_replace_map *, va_gc> *tree_map) : m_adj_params (adjustments->m_adj_params), m_adjustments (adjustments), m_reset_debug_decls (), m_split_modifications_p (false), m_dead_stmts (), - m_dead_ssas (), m_dead_ssa_debug_equiv (), m_dead_stmt_debug_equiv (), + m_dead_ssas (), m_dead_ssa_debug_equiv (128), m_dead_stmt_debug_equiv (), m_fndecl (fndecl), m_id (id), m_oparms (), m_new_decls (), m_new_types (), m_replacements (), m_removed_decls (), m_removed_map (), m_method2func (false)