OSDN Git Service

* ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Oct 1999 06:14:10 +0000 (06:14 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Oct 1999 06:14:10 +0000 (06:14 +0000)
        not an array of rtunion.
        * gcc-page.c (ggc_alloc_rtvec): Similarly.
        * gcc-simple (ggc_free_rtvec): Similarly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29793 138bc75d-0d04-0410-961f-82ee72b054a4

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

index c6162b0..5401351 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 6551e59..d567c8b 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 226db4b..879f8fa 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 536a06e..cb9364b 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);