------- Comment #6 from jakub at gcc dot gnu dot org 2007-08-23 23:30 ------- Subject: Bug 32573
Author: jakub Date: Thu Aug 23 23:29:57 2007 New Revision: 127750 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127750 Log: PR tree-optimization/32573 PR middle-end/32946 * tree-data-ref.c (initialize_data_dependence_relation): Clear DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning. (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it. (build_classic_dist_vector): Return false rather than true if DDR_ARE_DEPENDENT is non-NULL at the beginning. Return false if either subscript_dependence_tester_1 or build_classic_dist_vector_1 returned false. Don't call save_dist_v before calling build_classic_dist_vector_1. (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS with NULL DDR_ARE_DEPENDENT. Also free DDR_DIST_VECTS and/or DDR_DIR_VECTS vectors. * gcc.dg/pr32573.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr32573.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-data-ref.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32573