tree.c (type_hash_canon): Put all types in the hash-table, when GC'ing.

* tree.c (type_hash_canon): Put all types in the hash-table, when
	GC'ing.

From-SVN: r29351
This commit is contained in:
Mark Mitchell 1999-09-12 02:49:34 +00:00 committed by Mark Mitchell
parent 5868eb4e0a
commit 858e574fdc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
* tree.c (type_hash_canon): Put all types in the hash-table, when
GC'ing.
Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
* recog.h (struct recog_data, recog_data): New.

View File

@ -3756,7 +3756,7 @@ type_hash_canon (hashcode, type)
}
/* If this is a permanent type, record it for later reuse. */
if (TREE_PERMANENT (type))
if (ggc_p || TREE_PERMANENT (type))
type_hash_add (hashcode, type);
return type;