From 38792a9487a36149fc3af8ee550fc26839ebb65c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 8 Sep 1999 16:02:12 -0700 Subject: [PATCH] ggc-simple.c (ggc_free_rtx): Poison the correct amount for the rtx length. * ggc-simple.c (ggc_free_rtx): Poison the correct amount for the rtx length. From-SVN: r29215 --- gcc/ChangeLog | 7 ++++++- gcc/ggc-simple.c | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5afd3f9977c..ce1571ced6e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -Wed Sep 8 15:23:54 1999 Ricahrd Henderson +Wed Sep 8 16:01:14 1999 Richard Henderson + + * ggc-simple.c (ggc_free_rtx): Poison the correct amount + for the rtx length. + +Wed Sep 8 15:23:54 1999 Richard Henderson * alpha.md (call value patterns): Remove the result predicates. diff --git a/gcc/ggc-simple.c b/gcc/ggc-simple.c index 5e695ad1b54..f5e5a9740f3 100644 --- a/gcc/ggc-simple.c +++ b/gcc/ggc-simple.c @@ -300,7 +300,8 @@ ggc_free_rtx (r) fprintf (dump, "collect rtx %p\n", &r->rtx); #endif #ifdef GGC_POISON - memset (r, 0xAA, sizeof(*r)); + memset (r, 0xAA, sizeof(*r) + ((GET_RTX_LENGTH (r->rtx.code) -1) + * sizeof(rtunion))); #endif free (r); -- 2.30.2