[Bug middle-end/124552] [16 Regression] fn->copyid_alloc is never released
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 17 15:12:50 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124552
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
diff --git a/gcc/function.cc b/gcc/function.cc
index 9795dc7c1a0..bba05f3380d 100644
--- a/gcc/function.cc
+++ b/gcc/function.cc
@@ -85,6 +85,7 @@ along with GCC; see the file COPYING3. If not see
#include "value-range.h"
#include "gimple-range.h"
#include "insn-attr.h"
+#include "hierarchical_discriminator.h"
/* So we can assign to cfun in this file. */
#undef cfun
@@ -217,6 +218,7 @@ free_after_compilation (struct function *f)
f->cfg = NULL;
f->curr_properties &= ~PROP_cfg;
delete f->cond_uids;
+ free_copyid_allocator (f);
regno_reg_rtx = NULL;
}
works to silence the issue, but is quite late as I said.
More information about the Gcc-bugs
mailing list