https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99003
Bug ID: 99003 Summary: memory leak in IPA ICF Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- ==1945== Memcheck, a memory error detector ==1945== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==1945== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==1945== Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o ssa-dom-thread-1.s /home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c ==1945== ==1945== ==1945== HEAP SUMMARY: ==1945== in use at exit: 1,973,344 bytes in 2,924 blocks ==1945== total heap usage: 52,587 allocs, 49,663 frees, 19,998,193 bytes allocated ==1945== ==1945== 16 bytes in 1 blocks are definitely lost in loss record 9 of 785 ==1945== at 0x4C2E94F: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==1945== by 0x263B75A: ipa_icf::sem_item::add_reference(hash_map<ipa_icf::sem_usage_hash, auto_vec<ipa_icf::sem_item*, 0ul>, simple_hashmap_traits<default_hash_traits<ipa_icf::sem_usage_hash>, auto_vec<ipa_icf::sem_item*, 0ul> > >*, ipa_icf::sem_item*) (ipa-icf.c:169) ==1945== by 0x264556E: ipa_icf::sem_item_optimizer::build_graph() (ipa-icf.c:2642) ==1945== by 0x26448AF: ipa_icf::sem_item_optimizer::execute() (ipa-icf.c:2423) ==1945== by 0x2648932: ipa_icf::ipa_icf_driver() (ipa-icf.c:3584) ==1945== by 0x264B206: ipa_icf::pass_ipa_icf::execute(function*) (ipa-icf.c:3631) ==1945== by 0x12E8130: execute_one_pass(opt_pass*) (passes.c:2572) ==1945== by 0x12E90C8: execute_ipa_pass_list(opt_pass*) (passes.c:3001) ==1945== by 0xCFCB79: ipa_passes() (cgraphunit.c:2215) ==1945== by 0xCFCE0C: symbol_table::compile() (cgraphunit.c:2292) ==1945== by 0xCFD379: symbol_table::finalize_compilation_unit() (cgraphunit.c:2540) ==1945== by 0x148FF21: compile_file() (toplev.c:482)