diff options
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index dfbc85c..d495fdc 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -965,7 +965,7 @@ regclass (f, nregs) #ifdef FORBIDDEN_INC_DEC_CLASSES - in_inc_dec = (char *) alloca (nregs); + in_inc_dec = (char *) xmalloc (nregs); /* Initialize information about which register classes can be used for pseudos that are auto-incremented or auto-decremented. It would @@ -1109,6 +1109,9 @@ regclass (f, nregs) } } +#ifdef FORBIDDEN_INC_DEC_CLASSES + free (in_inc_dec); +#endif free (costs); } |