* lto.c (hash_canonical_type): Drop hashing of METHOD_BASETYPE.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 23 May 2015 14:32:26 +0000 (16:32 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 23 May 2015 14:32:26 +0000 (14:32 +0000)
From-SVN: r223607

gcc/lto/ChangeLog
gcc/lto/lto.c

index 335bd545fe06fc586805377d03b6fbf38e514eea..45d05850a7ac63de7bc4554232288dbe649a8434 100644 (file)
@@ -1,3 +1,7 @@
+2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto.c (hash_canonical_type): Drop hashing of METHOD_BASETYPE.
+
 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
 
        * lto.c (gimple_canonical_types_compatible_p): Move to tree.c
index 26697443010a2ead00d49532e10fac232a4a29d2..29059eb30db484f73e31efc08082b3cfcbbd6dad 100644 (file)
@@ -372,10 +372,6 @@ hash_canonical_type (tree type)
       unsigned na;
       tree p;
 
-      /* For method types also incorporate their parent class.  */
-      if (TREE_CODE (type) == METHOD_TYPE)
-       iterative_hash_canonical_type (TYPE_METHOD_BASETYPE (type), hstate);
-
       iterative_hash_canonical_type (TREE_TYPE (type), hstate);
 
       for (p = TYPE_ARG_TYPES (type), na = 0; p; p = TREE_CHAIN (p))