summaryrefslogtreecommitdiff
path: root/gcc/ggc-common.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-13 21:54:10 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-13 21:54:10 +0000
commitc20062564937da13e1c1400788a20a9445e32f90 (patch)
tree490271c25f7b2bad0d62e16839aac77b96e10f7a /gcc/ggc-common.c
parentb39d755dc68583760d6fa95486a288e1821a270a (diff)
downloadgcc-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.c3
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