https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99054

            Bug ID: 99054
           Summary: memory leak in thread_prologue_and_epilogue_insns
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

==3252== Memcheck, a memory error detector
==3252== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==3252== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==3252== Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o
ssa-dom-thread-1.s
/home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/torture/pr98289.c
==3252== 
==3252== 
==3252== HEAP SUMMARY:
==3252==     in use at exit: 1,877,561 bytes in 2,761 blocks
==3252==   total heap usage: 54,967 allocs, 52,206 frees, 10,428,830 bytes
allocated
==3252== 
==3252== 40 bytes in 1 blocks are definitely lost in loss record 28 of 699
==3252==    at 0x4C2E2DF: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==3252==    by 0x28ECCA8: xrealloc (xmalloc.c:177)
==3252==    by 0xC78E72: void
va_heap::reserve<basic_block_def*>(vec<basic_block_def*, va_heap, vl_embed>*&,
unsigned int, bool) (vec.h:290)
==3252==    by 0xC789CF: vec<basic_block_def*, va_heap,
vl_ptr>::reserve(unsigned int, bool) (vec.h:1778)
==3252==    by 0xCABA7B: vec<basic_block_def*, va_heap,
vl_ptr>::safe_push(basic_block_def* const&) (vec.h:1887)
==3252==    by 0xCBF762: find_partition_fixes(bool) (cfgrtl.c:2405)
==3252==    by 0xCBF7B2: fixup_partitions() (cfgrtl.c:2434)
==3252==    by 0xCBE8A6: commit_edge_insertions() (cfgrtl.c:2112)
==3252==    by 0xF14501: thread_prologue_and_epilogue_insns() (function.c:6084)
==3252==    by 0xF152E0: rest_of_handle_thread_prologue_and_epilogue()
(function.c:6510)
==3252==    by 0xF154C0: (anonymous
namespace)::pass_thread_prologue_and_epilogue::execute(function*)
(function.c:6586)
==3252==    by 0x12E7FEA: execute_one_pass(opt_pass*) (passes.c:2572)

Reply via email to