combine.c (recog_for_combine): Allocate uninitialized vector with rtvec_alloc.
authorJ"orn Rennecke <amylaar@redhat.com>
Tue, 7 Nov 2000 06:36:12 +0000 (06:36 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 7 Nov 2000 06:36:12 +0000 (06:36 +0000)
* combine.c (recog_for_combine): Allocate uninitialized vector with
rtvec_alloc.
* recog.c (apply_change_group): Likewise.

From-SVN: r37285

gcc/ChangeLog
gcc/combine.c
gcc/recog.c

index ec6df704f7133cd126580353489a3e777ab58004..7d06b18f6d57eb3b59f670099c8d0c811ee054e4 100644 (file)
@@ -1,3 +1,9 @@
+Tue Nov  7 06:29:24 2000  J"orn Rennecke <amylaar@redhat.com>
+
+       * 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 <amylaar@redhat.com>
 
        * flow.c (verify_local_live_at_start): Back out last change.
index 33de90c4988fd8f1cc9119b6b9b81115fa11cc0a..7005367f1ea48e951e1cd95b4e8b707261bbf253 100644 (file)
@@ -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++)
index 1d5a8a61a0268bb69dd83c1fca777ce06cfe6841..b8b532e24037b814f47b3c6cb411e1e5e2080335 100644 (file)
@@ -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);
                 }