* genemit.c (gen_expand): Allocate enough memory.

From-SVN: r118762
This commit is contained in:
Michael Matz 2006-11-13 14:36:47 +00:00 committed by Michael Matz
parent 3e806a3df4
commit 7180bcb13f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-11-13 Michael Matz <matz@suse.de>
* genemit.c (gen_expand): Allocate enough memory.
2006-11-13 Joseph Myers <joseph@codesourcery.com>
* config/arm/bpapi.h (TARGET_BPABI_CPP_BUILTINS): Define

View File

@ -534,7 +534,8 @@ gen_expand (rtx expand)
Use emit_insn to add them to the sequence being accumulated.
But don't do this if the user's code has set `no_more' nonzero. */
used = XCNEWVEC (char, operands);
used = XCNEWVEC (char,
MAX (operands, MAX (max_scratch_opno, max_dup_opno) + 1));
for (i = 0; i < XVECLEN (expand, 1); i++)
{