Clarification request for ipa/cgraph code

Mike Stump mrs@apple.com
Thu May 10 18:24:00 GMT 2007


On May 9, 2007, at 11:14 PM, Paolo Bonzini wrote:
> Return TYPE if no type compatible with TYPE has been seen so far,  
> otherwise return a type compatible with TYPE that has already been  
> processed.

Ok, that seems to match my expectation of what the code does and is  
easier to understand, thanks...

This is what I checked in.

Doing diffs in .:
--- ipa-type-escape.c.~1~	2007-05-09 14:56:22.000000000 -0700
+++ ipa-type-escape.c	2007-05-10 10:52:52.000000000 -0700
@@ -196,8 +196,9 @@ compare_type_brand (splay_tree_key sk1,
  /* This is a trivial algorithm for removing duplicate types.  This
     would not work for any language that used structural equivalence as
     the basis of its type system.  */
-/* Return either TYPE if this is first time TYPE has been seen an
-   compatible TYPE that has already been processed.  */
+/* Return TYPE if no type compatible with TYPE has been seen so far,
+   otherwise return a type compatible with TYPE that has already been
+   processed.  */

  static tree
  discover_unique_type (tree type)
--------------



More information about the Gcc-patches mailing list