summaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-01 22:20:49 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-01 22:20:49 +0000
commitf26a9c45be01a2abacb3eb217ccd622683fb7bcb (patch)
treefd82e11d03a30b7a7b787d2b56f1e311008f1000 /gcc/loop.c
parent9526f0646fb6281c6b57e4c45fe14388077c7603 (diff)
downloadgcc-f26a9c45be01a2abacb3eb217ccd622683fb7bcb.tar.gz
* loop.c (scan_loop): Use xmalloc to allocate movables.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38598 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 652b5feb9ec..8faacaf3e02 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -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);