* loop.c (scan_loop): Use xmalloc to allocate movables.
authorAndreas Jaeger <aj@suse.de>
Mon, 1 Jan 2001 22:20:49 +0000 (23:20 +0100)
committerJeff Law <law@gcc.gnu.org>
Mon, 1 Jan 2001 22:20:49 +0000 (15:20 -0700)
From-SVN: r38598

gcc/ChangeLog
gcc/loop.c

index ae5143424f7312351df349cb028b3fea1ac7a812..5e3821ce5ffb1f38fba2acce08a7423c7e445976 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-01  Andreas Jaeger  <aj@suse.de>
+
+       * loop.c (scan_loop): Use xmalloc to allocate movables.
+
 2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
 
        * tm.texi (REGISTER_MOVE_COST): Add a mode argument.
index 652b5feb9ec71bec544e4ec69a35b3cee43d772f..8faacaf3e02054f84d641ae45f69379f8c6fea83 100644 (file)
@@ -1,6 +1,6 @@
 /* Perform various loop optimizations, including strength reduction.
    Copyright (C) 1987, 1988, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
-   1998, 1999, 2000 Free Software Foundation, Inc.
+   1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -909,7 +909,7 @@ scan_loop (loop, flags)
              if (VARRAY_INT (regs->set_in_loop, regno) == 2)
                {
                  register struct movable *m;
-                 m = (struct movable *) alloca (sizeof (struct movable));
+                 m = (struct movable *) xmalloc (sizeof (struct movable));
                  m->next = 0;
                  m->insn = p;
                  m->set_dest = SET_DEST (set);