* [PATCH] GTY skip
@ 2017-05-09 13:08 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2017-05-09 13:08 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 423 bytes --]
gengtype doesn't understand about struct-scope for typedefs, and
consequently gets confused if multiple classes define the same-named
typedef. The regular default_hash_traits is invisible to gengtype, so
it doesn't barf on the first specialization, only on the second -- which
is what I'll be adding soon.
This patch tells gengtype to move along, nothing to see here.
Applied as obvious.
nathan
--
Nathan Sidwell
[-- Attachment #2: gty.diff --]
[-- Type: text/x-patch, Size: 696 bytes --]
2017-05-09 Nathan Sidwell <nathan@acm.org>
* ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
typedefs.
Index: ipa-devirt.c
===================================================================
--- ipa-devirt.c (revision 247784)
+++ ipa-devirt.c (working copy)
@@ -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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-09 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09 13:08 [PATCH] GTY skip Nathan Sidwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).