[PATCH] Fix PR47002: memory leaks.

Sebastian Pop sebpop@gmail.com
Thu Dec 23 01:00:00 GMT 2010


This passed regstrap on amd64-linux.

Sebastian

On Wed, Dec 22, 2010 at 16:55, Sebastian Pop <sebpop@gmail.com> wrote:
> This patch on top of the previous one fixes the last fails that I saw.
> I am regstraping again.
>
> Sebastian
>
> diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
> index 25c93c2..aba70c8 100644
> --- a/gcc/tree-parloops.c
> +++ b/gcc/tree-parloops.c
> @@ -271,6 +271,7 @@ loop_parallel_p (struct loop *loop, struct obstack
> * parloop_obstack)
>      the iterations are independent.  */
>   datarefs = VEC_alloc (data_reference_p, heap, 10);
>   dependence_relations = VEC_alloc (ddr_p, heap, 10 * 10);
> +  loop_nest = VEC_alloc (loop_p, heap, 3);
>   compute_data_dependences_for_loop (loop, true, &loop_nest, &datarefs,
>                                     &dependence_relations);
>   if (dump_file && (dump_flags & TDF_DETAILS))
>
>
> On Wed, Dec 22, 2010 at 16:44, Sebastian Pop <sebpop@gmail.com> wrote:
>> With this last patch I still see these fails:
>>
>> FAIL: libgomp.c/autopar-1.c (internal compiler error)
>> FAIL: libgomp.c/autopar-1.c (test for excess errors)
>> FAIL: gcc.dg/autopar/outer-4.c (internal compiler error)
>> FAIL: gcc.dg/autopar/outer-4.c (test for excess errors)
>> FAIL: gcc.dg/autopar/outer-4.c scan-tree-dump-times optimized "loopfn"
>> 5: dump file does not exist
>> FAIL: gcc.dg/autopar/outer-5.c (internal compiler error)
>> FAIL: gcc.dg/autopar/outer-5.c (test for excess errors)
>> FAIL: gcc.dg/autopar/outer-5.c scan-tree-dump-times optimized "loopfn" 5
>> FAIL: gcc.dg/autopar/outer-6.c (internal compiler error)
>> FAIL: gcc.dg/autopar/outer-6.c (test for excess errors)
>> FAIL: gcc.dg/autopar/outer-6.c scan-tree-dump-times parloops
>> "parallelizing outer loop" 1
>> FAIL: gcc.dg/autopar/outer-6.c scan-tree-dump-times optimized "loopfn" 5
>> FAIL: gcc.dg/autopar/pr46099.c (internal compiler error)
>> FAIL: gcc.dg/autopar/pr46099.c (test for excess errors)
>> FAIL: gcc.dg/autopar/pr46799.c (internal compiler error)
>> FAIL: gcc.dg/autopar/pr46799.c (test for excess errors)
>> FAIL: gcc.dg/autopar/pr46885.c (internal compiler error)
>> FAIL: gcc.dg/autopar/pr46885.c (test for excess errors)
>>
>> I will fix these problems and repost the patch.
>>
>> Sebastian
>>
>



More information about the Gcc-patches mailing list