OSDN Git Service

PR39235:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Mar 2009 23:22:22 +0000 (23:22 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Mar 2009 23:22:22 +0000 (23:22 +0000)
* loop-iv.c (get_simple_loop_desc): Use XCNEW.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144628 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop-iv.c

index 1e8b568..ed933ff 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
+
+       PR39235:
+       * loop-iv.c (get_simple_loop_desc): Use XCNEW.
+
 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
 
        * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
index 9d844d8..e02f164 100644 (file)
@@ -2801,7 +2801,9 @@ get_simple_loop_desc (struct loop *loop)
   if (desc)
     return desc;
 
-  desc = XNEW (struct niter_desc);
+  /* At least desc->infinite is not always initialized by
+     find_simple_loop_exit.  */
+  desc = XCNEW (struct niter_desc);
   iv_analysis_loop_init (loop);
   find_simple_exit (loop, desc);
   loop->aux = desc;