https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99002
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|RESOLVED |REOPENED --- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Richard Biener from comment #2) > Another one: > > ==17557== Memcheck, a memory error detector > ==17557== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. > ==17557== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info > ==17557== Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o > ssa-dom-thread-1.s > /home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/torture/pr63464.c > ==17557== > ==17557== > ==17557== HEAP SUMMARY: > ==17557== in use at exit: 1,890,206 bytes in 2,855 blocks > ==17557== total heap usage: 86,712 allocs, 83,857 frees, 16,547,876 bytes > allocated > ==17557== > ==17557== 448 bytes in 8 blocks are definitely lost in loss record 674 of 760 > ==17557== at 0x4C2E94F: operator new(unsigned long) (in > /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) > ==17557== by 0x24FF041: if_chain::is_beneficial() > (gimple-if-to-switch.cc:207) > ==17557== by 0x250052F: (anonymous > namespace)::pass_if_to_switch::execute(function*) > (gimple-if-to-switch.cc:545) > ==17557== by 0x12E7FEA: execute_one_pass(opt_pass*) (passes.c:2572) > ==17557== by 0x12E8321: execute_pass_list_1(opt_pass*) (passes.c:2661) > ==17557== by 0x12E8352: execute_pass_list_1(opt_pass*) (passes.c:2662) > ==17557== by 0x12E83AA: execute_pass_list(function*, opt_pass*) > (passes.c:2672) > ==17557== by 0x12E62DF: do_per_function_toporder(void (*)(function*, > void*), void*) (passes.c:1774) > ==17557== by 0x12E8FDA: execute_ipa_pass_list(opt_pass*) (passes.c:3006) > ==17557== by 0xCFC9EE: ipa_passes() (cgraphunit.c:2157) > ==17557== by 0xCFCE24: symbol_table::compile() (cgraphunit.c:2292) > ==17557== by 0xCFD391: symbol_table::finalize_compilation_unit() > (cgraphunit.c:2540) I've got a patch for this on.