ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope typedefs.
authorNathan Sidwell <nathan@acm.org>
Tue, 9 May 2017 13:03:41 +0000 (13:03 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 9 May 2017 13:03:41 +0000 (13:03 +0000)
* ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
typedefs.

From-SVN: r247791

gcc/ChangeLog
gcc/ipa-devirt.c

index b36704b..4e0abca 100644 (file)
@@ -1,3 +1,8 @@
+2017-05-09  Nathan Sidwell  <nathan@acm.org>
+
+       * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
+       typedefs.
+
 2017-05-09  Marek Polacek  <polacek@redhat.com>
 
        * doc/invoke.texi: Fix typo.
index e013a26..20e0dd6 100644 (file)
@@ -138,10 +138,11 @@ struct type_pair
 };
 
 template <>
-struct default_hash_traits <type_pair> : typed_noop_remove <type_pair>
+struct default_hash_traits <type_pair>
+  : typed_noop_remove <type_pair>
 {
-  typedef type_pair value_type;
-  typedef type_pair compare_type;
+  GTY((skip)) typedef type_pair value_type;
+  GTY((skip)) typedef type_pair compare_type;
   static hashval_t
   hash (type_pair p)
   {