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

            Bug ID: 79338
           Summary: [6/7 Regression] Memory leak in tree-parloops.c
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: vries at gcc dot gnu.org
  Target Milestone: ---

Starting with r226300, following leak can be seen:

$ valgrind --leak-check=yes --trace-children=yes ./xgcc -B.
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/autopar/outer-4.c -c -O2
-ftree-parallelize-loops=4

==28010== 432 bytes in 2 blocks are definitely lost in loss record 604 of 698
==28010==    at 0x4C2D0C5: calloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28010==    by 0x1A7D250: xcalloc (xmalloc.c:162)
==28010==    by 0x11B24F8: new_stmt_vec_info(gimple*, vec_info*)
(tree-vect-stmts.c:8828)
==28010==    by 0x11BB8FD: new_loop_vec_info(loop*) (tree-vect-loop.c:1129)
==28010==    by 0x11BC94A: vect_analyze_loop_form(loop*)
(tree-vect-loop.c:1565)
==28010==    by 0xFA919A: gather_scalar_reductions(loop*,
hash_table<reduction_hasher, xcallocator>*) (tree-parloops.c:2522)
==28010==    by 0xFA9926: try_create_reduction_list(loop*,
hash_table<reduction_hasher, xcallocator>*, bool) (tree-parloops.c:2692)
==28010==    by 0xFAB4BD: parallelize_loops(bool) (tree-parloops.c:3305)
==28010==    by 0xFAB90C: (anonymous
namespace)::pass_parallelize_loops::execute(function*) (tree-parloops.c:3419)
==28010==    by 0xD84DAF: execute_one_pass(opt_pass*) (passes.c:2465)
==28010==    by 0xD85100: execute_pass_list_1(opt_pass*) (passes.c:2554)
==28010==    by 0xD85131: execute_pass_list_1(opt_pass*) (passes.c:2555)

Reply via email to