re PR tree-optimization/29330 (-O -ftree-loop-linear --> virtual memory exhausted)
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Oct 2006 16:57:27 +0000 (18:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Oct 2006 16:57:27 +0000 (18:57 +0200)
commit3ac571201309b925c13eebe0a140b20f93dbf4b1
treeac2555c908e09e415f6469a5dbdd8f4a4c0500b8
parentc66475078ce85978489b9da5a19ebf21697f2b0d
re PR tree-optimization/29330 (-O -ftree-loop-linear   -->  virtual memory exhausted)

PR tree-optimization/29330
* tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro.
(initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer
on newly allocated ddrs.
(find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer
to VEC (loop_p, heap) pointer.
(compute_data_dependences_for_loop): Adjust caller.
(free_dependence_relations): Free DDR_LOOP_NEST.

* tree-loop-linear.c (linear_transform_loops): Don't forget to
free DEPENDENCE_RELATIONS and DATAREFS.

* gcc.dg/pr29330.c: New test.

From-SVN: r117509
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr29330.c [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-loop-linear.c