Fix stack overflow found by glibc compile with max optimizations.
authorJim Wilson <wilson@cygnus.com>
Thu, 18 Jun 1998 20:17:26 +0000 (20:17 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 18 Jun 1998 20:17:26 +0000 (13:17 -0700)
commit7c74b010d72a4bb1fb6e2647c75a88b865e137b2
tree93fbc1459e6675b3c705a7f66d20d7194d504e4b
parent243e7835fb7d2015eee565f70b17c2fdb238cdab
Fix stack overflow found by glibc compile with max optimizations.

* sched.c (schedule_insns): Use xmalloc not alloca for max_uid
indexed arrays.  Call free at the end of the function for them.
* haifa-sched.c (schedule_insns): Likewise.

From-SVN: r20563
gcc/ChangeLog
gcc/haifa-sched.c
gcc/sched.c