diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-13 21:54:10 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-13 21:54:10 +0000 |
commit | c20062564937da13e1c1400788a20a9445e32f90 (patch) | |
tree | 490271c25f7b2bad0d62e16839aac77b96e10f7a /gcc/ggc-common.c | |
parent | b39d755dc68583760d6fa95486a288e1821a270a (diff) | |
download | gcc-c20062564937da13e1c1400788a20a9445e32f90.tar.gz |
* ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index b5dad6bbd76..dcff4614001 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -128,7 +128,8 @@ ggc_mark_roots () they are not already marked. */ for (ct = gt_ggc_cache_rtab; *ct; ct++) for (cti = *ct; cti->base != NULL; cti++) - htab_traverse (*cti->base, ggc_htab_delete, (PTR) cti); + if (*cti->base) + htab_traverse (*cti->base, ggc_htab_delete, (PTR) cti); } /* R had not been previously marked, but has now been marked via |