aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-09 13:03:41 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-09 13:03:41 +0000
commit6c38fbc648dc7bfa73ef703d1584196f64dcc151 (patch)
treed6ef3018f4eeb970408462f0ebc2b7dd54cf8571 /gcc
parent684f84dea9cb2acf6c61bf461a9d50f6b7c03eca (diff)
downloadgcc-6c38fbc648dc7bfa73ef703d1584196f64dcc151.zip
gcc-6c38fbc648dc7bfa73ef703d1584196f64dcc151.tar.gz
gcc-6c38fbc648dc7bfa73ef703d1584196f64dcc151.tar.bz2
ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope typedefs.
* ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope typedefs. From-SVN: r247791
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-devirt.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b36704b..4e0abca 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index e013a26..20e0dd6 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -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)
{