diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2002-09-13 21:54:10 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2002-09-13 21:54:10 +0000 |
commit | c89019ff8f5dcab1151ca8346bdf7da3b9c87559 (patch) | |
tree | 490271c25f7b2bad0d62e16839aac77b96e10f7a /gcc/ggc-common.c | |
parent | 15ff2835fa8b1d444b4bc974fd49670e21630f3a (diff) |
* ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
git-svn-id: https://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 |