ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx, not an array of rtunion.
authorJeffrey A Law <law@cygnus.com>
Mon, 4 Oct 1999 06:14:10 +0000 (06:14 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 4 Oct 1999 06:14:10 +0000 (00:14 -0600)
        * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
        not an array of rtunion.
        * gcc-page.c (ggc_alloc_rtvec): Similarly.
        * gcc-simple (ggc_free_rtvec): Similarly.

From-SVN: r29793

gcc/ChangeLog
gcc/ggc-none.c
gcc/ggc-page.c
gcc/ggc-simple.c

index c6162b0f2af8e37892a6b2409ddeaaa1075aa806..5401351c6255b46e001aa8d1cb3a9520588acf2d 100644 (file)
@@ -1,5 +1,10 @@
 Sun Oct  3 14:14:16 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
+       not an array of rtunion.
+       * gcc-page.c (ggc_alloc_rtvec): Similarly.
+       * gcc-simple (ggc_free_rtvec): Similarly.
+
        * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
        of rtunions.
 
index 6551e59a3ac4265c9f3d39fcb2139b4a2250fdc3..d567c8b3fde932e0168846a484d1ada621c752a9 100644 (file)
@@ -51,7 +51,7 @@ rtvec
 ggc_alloc_rtvec (nelt)
      int nelt;
 {
-  int size = sizeof (struct rtvec_def) + (nelt - 1) * sizeof (rtunion);
+  int size = sizeof (struct rtvec_def) + (nelt - 1) * sizeof (rtx);
   rtvec v;
 
   v = (rtvec) xmalloc (size);
index 226db4b7466d1eb47f7dfd8c8377c49b4844117c..879f8fa776d105ddde5718ecb5eba85751f7ebce 100644 (file)
@@ -795,7 +795,7 @@ ggc_alloc_rtvec (nelt)
      int nelt;
 {
   return (struct rtvec_def *)
-    alloc_obj (sizeof (struct rtvec_def) + (nelt - 1) * sizeof (rtunion), 1);
+    alloc_obj (sizeof (struct rtvec_def) + (nelt - 1) * sizeof (rtx), 1);
 }
 
 
index 536a06e251506313f60f9f28bb7f7b5b5b63ead4..cb9364be96c9594d246f4005451adc24ab7ad652 100644 (file)
@@ -366,7 +366,7 @@ ggc_free_rtvec (v)
 #endif
 #ifdef GGC_POISON
   memset (v, 0xBB, sizeof (*v) + ((GET_NUM_ELEM (&v->vec) - 1)
-                                 * sizeof (rtunion)));
+                                 * sizeof (rtx)));
 #endif
 
   free (v);