]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 b36704befc97e5fecacb39ecef4b724f94767b3f..4e0abcab0cd61c1f8b62efc8fbe4fc921bff6360 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 e013a26a4a0d20c386b950921965aa0b7f0c6828..20e0dd68b4d45d64f41aa5618eae7d5fb8813e2f 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)
   {