diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-13 14:36:47 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-13 14:36:47 +0000 |
commit | 4671d3de14cdcee825651735ece2f37259c37d15 (patch) | |
tree | 4466a13ea14fee1563383886e3034e79d733a8bc /gcc/genemit.c | |
parent | f79c8ea7cc199c85756bccf36b7ebc00354c0ed0 (diff) | |
download | gcc-4671d3de14cdcee825651735ece2f37259c37d15.tar.gz |
* genemit.c (gen_expand): Allocate enough memory.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118762 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r-- | gcc/genemit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c index a1ebcf68cd7..b0dd23498ba 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -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++) { |