https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99002
Bug ID: 99002 Summary: [11 Regression] memory leak in if-to-switch 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: --- ==1542== Memcheck, a memory error detector ==1542== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==1542== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==1542== Command: ./cc1 -quiet -fdiagnostics-plain-output -O2 -fno-tree-vrp -fdump-tree-dom2-details -o ssa-dom-thread-1.s /home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-11.c ==1542== ==1542== ==1542== HEAP SUMMARY: ==1542== in use at exit: 1,875,265 bytes in 2,696 blocks ==1542== total heap usage: 16,329 allocs, 13,633 frees, 6,189,742 bytes allocated ==1542== ==1542== 64 bytes in 1 blocks are definitely lost in loss record 151 of 682 ==1542== at 0x4C2E94F: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==1542== by 0x24FFE0F: find_conditions(basic_block_def*, hash_map<basic_block_def*, condition_info*, simple_hashmap_traits<default_hash_traits<basic_block_def*>, condition_info*> >*) (gimple-if-to-switch.cc:398) ==1542== by 0x250044B: (anonymous namespace)::pass_if_to_switch::execute(function*) (gimple-if-to-switch.cc:499) ==1542== by 0x12E8130: execute_one_pass(opt_pass*) (passes.c:2572) ==1542== by 0x12E8467: execute_pass_list_1(opt_pass*) (passes.c:2661) ==1542== by 0x12E8498: execute_pass_list_1(opt_pass*) (passes.c:2662) ==1542== by 0x12E84F0: execute_pass_list(function*, opt_pass*) (passes.c:2672) ==1542== by 0x12E6425: do_per_function_toporder(void (*)(function*, void*), void*) (passes.c:1774) ==1542== by 0x12E9120: execute_ipa_pass_list(opt_pass*) (passes.c:3006) ==1542== by 0xCFC9D6: ipa_passes() (cgraphunit.c:2157) ==1542== by 0xCFCE0C: symbol_table::compile() (cgraphunit.c:2292) ==1542== by 0xCFD379: symbol_table::finalize_compilation_unit() (cgraphunit.c:2540) ==1542==