ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx, not an array of rtunion.

* 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
This commit is contained in:
Jeffrey A Law 1999-10-04 06:14:10 +00:00 committed by Jeff Law
parent 910eabe501
commit 88deedb5c9
4 changed files with 8 additions and 3 deletions

View 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.

View 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);

View 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);
}

View 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);