https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99029
Bug ID: 99029 Summary: memory leak in IPA pure-const Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- ==14211== Memcheck, a memory error detector ==14211== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==14211== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==14211== Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o ssa-dom-thread-2.s /home/rguenther/src/gcc3/gcc/testsuite/gcc.c-torture/compile/20040202-1.c ==14211== ==14211== ==14211== HEAP SUMMARY: ==14211== in use at exit: 1,866,764 bytes in 2,685 blocks ==14211== total heap usage: 15,548 allocs, 12,863 frees, 5,056,602 bytes allocated ==14211== ==14211== 40 bytes in 1 blocks are definitely lost in loss record 30 of 664 ==14211== at 0x4C2E2DF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==14211== by 0x28ECCA8: xrealloc (xmalloc.c:177) ==14211== by 0xD00CF0: void va_heap::reserve<cgraph_node*>(vec<cgraph_node*, va_heap, vl_embed>*&, unsigned int, bool) (vec.h:290) ==14211== by 0xD0054B: vec<cgraph_node*, va_heap, vl_ptr>::reserve(unsigned int, bool) (vec.h:1778) ==14211== by 0xD00017: vec<cgraph_node*, va_heap, vl_ptr>::safe_push(cgraph_node* const&) (vec.h:1887) ==14211== by 0x2635957: propagate_malloc() (ipa-pure-const.c:1945) ==14211== by 0x2635C47: (anonymous namespace)::pass_ipa_pure_const::execute(function*) (ipa-pure-const.c:2007) ==14211== by 0x12E7FEA: execute_one_pass(opt_pass*) (passes.c:2572) ==14211== by 0x12E8F82: execute_ipa_pass_list(opt_pass*) (passes.c:3001) ==14211== by 0xCFCB91: ipa_passes() (cgraphunit.c:2215) ==14211== by 0xCFCE24: symbol_table::compile() (cgraphunit.c:2292) ==14211== by 0xCFD391: symbol_table::finalize_compilation_unit() (cgraphunit.