From bf103ec201124f0e3179d4de04002c3f25c5832a Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Tue, 7 Nov 2000 06:36:12 +0000 Subject: combine.c (recog_for_combine): Allocate uninitialized vector with rtvec_alloc. * combine.c (recog_for_combine): Allocate uninitialized vector with rtvec_alloc. * recog.c (apply_change_group): Likewise. From-SVN: r37285 --- gcc/ChangeLog | 6 ++++++ gcc/combine.c | 8 ++++---- gcc/recog.c | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ec6df70..7d06b18 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Tue Nov 7 06:29:24 2000 J"orn Rennecke + + * combine.c (recog_for_combine): Allocate uninitialized vector with + rtvec_alloc. + * recog.c (apply_change_group): Likewise. + Tue Nov 7 06:24:02 2000 J"orn Rennecke * flow.c (verify_local_live_at_start): Back out last change. diff --git a/gcc/combine.c b/gcc/combine.c index 33de90c..7005367 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -9680,10 +9680,10 @@ recog_for_combine (pnewpat, insn, pnotes) if (num_clobbers_to_add) { rtx newpat = gen_rtx_PARALLEL (VOIDmode, - gen_rtvec (GET_CODE (pat) == PARALLEL - ? (XVECLEN (pat, 0) - + num_clobbers_to_add) - : num_clobbers_to_add + 1)); + rtvec_alloc (GET_CODE (pat) == PARALLEL + ? (XVECLEN (pat, 0) + + num_clobbers_to_add) + : num_clobbers_to_add + 1)); if (GET_CODE (pat) == PARALLEL) for (i = 0; i < XVECLEN (pat, 0); i++) diff --git a/gcc/recog.c b/gcc/recog.c index 1d5a8a6..b8b532e 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -335,7 +335,7 @@ apply_change_group () newpat = gen_rtx_PARALLEL (VOIDmode, - gen_rtvec (XVECLEN (pat, 0) - 1)); + rtvec_alloc (XVECLEN (pat, 0) - 1)); for (j = 0; j < XVECLEN (newpat, 0); j++) XVECEXP (newpat, 0, j) = XVECEXP (pat, 0, j); } -- cgit v1.1