From: Nathan Sidwell Date: Tue, 9 May 2017 13:03:41 +0000 (+0000) Subject: ipa-devirt.c (default_hash_traits): Skip struct-scope typedefs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c38fbc648dc7bfa73ef703d1584196f64dcc151;p=gcc.git ipa-devirt.c (default_hash_traits): Skip struct-scope typedefs. * ipa-devirt.c (default_hash_traits): Skip struct-scope typedefs. From-SVN: r247791 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b36704befc9..4e0abcab0cd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-09 Nathan Sidwell + + * ipa-devirt.c (default_hash_traits): Skip struct-scope + typedefs. + 2017-05-09 Marek Polacek * doc/invoke.texi: Fix typo. diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index e013a26a4a0..20e0dd68b4d 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -138,10 +138,11 @@ struct type_pair }; template <> -struct default_hash_traits : typed_noop_remove +struct default_hash_traits + : typed_noop_remove { - 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) {