This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Clarification request for ipa/cgraph code


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)
--------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]