Commit 88deedb5 by Jeffrey A Law Committed by Jeff Law

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
parent 910eabe5
Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com) 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 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
of rtunions. of rtunions.
......
...@@ -51,7 +51,7 @@ rtvec ...@@ -51,7 +51,7 @@ rtvec
ggc_alloc_rtvec (nelt) ggc_alloc_rtvec (nelt)
int 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; rtvec v;
v = (rtvec) xmalloc (size); v = (rtvec) xmalloc (size);
......
...@@ -795,7 +795,7 @@ ggc_alloc_rtvec (nelt) ...@@ -795,7 +795,7 @@ ggc_alloc_rtvec (nelt)
int nelt; int nelt;
{ {
return (struct rtvec_def *) 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);
} }
......
...@@ -366,7 +366,7 @@ ggc_free_rtvec (v) ...@@ -366,7 +366,7 @@ ggc_free_rtvec (v)
#endif #endif
#ifdef GGC_POISON #ifdef GGC_POISON
memset (v, 0xBB, sizeof (*v) + ((GET_NUM_ELEM (&v->vec) - 1) memset (v, 0xBB, sizeof (*v) + ((GET_NUM_ELEM (&v->vec) - 1)
* sizeof (rtunion))); * sizeof (rtx)));
#endif #endif
free (v); free (v);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment