tree.c (type_hash_canon): Put all types in the hash-table, when GC'ing.
authorMark Mitchell <mark@codesourcery.com>
Sun, 12 Sep 1999 02:49:34 +0000 (02:49 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 12 Sep 1999 02:49:34 +0000 (02:49 +0000)
* tree.c (type_hash_canon): Put all types in the hash-table, when
GC'ing.

From-SVN: r29351

gcc/ChangeLog
gcc/tree.c

index 2b3426af9eee41bbbc7455c60d8bdbd3e5a916f1..ae3754592697062beb4fdf564753f58c5c88ab8d 100644 (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.
index b10ce01ccfdab7f86b6e0ecf147955c6ec01d3b4..b9da51bd5a583db452a0a2c134951fcacf84b96a 100644 (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;