From: Jeffrey A Law Date: Mon, 4 Oct 1999 06:14:10 +0000 (+0000) Subject: ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx, not an array of rtunion. X-Git-Tag: prereleases/libstdc++-2.92~10233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88deedb5c9036cbd6fb664cd96ab8bc4d4af5fdc;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c6162b0f2af8..5401351c6255 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/ggc-none.c b/gcc/ggc-none.c index 6551e59a3ac4..d567c8b3fde9 100644 --- a/gcc/ggc-none.c +++ b/gcc/ggc-none.c @@ -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); diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 226db4b7466d..879f8fa776d1 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -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); } diff --git a/gcc/ggc-simple.c b/gcc/ggc-simple.c index 536a06e25150..cb9364be96c9 100644 --- a/gcc/ggc-simple.c +++ b/gcc/ggc-simple.c @@ -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);