From: Jan Hubicka Date: Thu, 5 Sep 2013 23:25:48 +0000 (+0200) Subject: tree.c (types_same_for_odr): Drop overactive check. X-Git-Tag: releases/gcc-4.9.0~4251 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d2ba4711f5e69b460fa44a1b07b3920b3ce6b65;p=thirdparty%2Fgcc.git tree.c (types_same_for_odr): Drop overactive check. * tree.c (types_same_for_odr): Drop overactive check. * ipa-devirt.c (hash_type_name): Likewise. From-SVN: r202302 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e56b4a94790..3a77445e5546 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-09-04 Jan Hubicka + + * tree.c (types_same_for_odr): Drop overactive check. + * ipa-devirt.c (hash_type_name): Likewise. + 2013-09-04 Jan Hubicka * cgraphunit.c (walk_polymorphic_call_targets): Break out from ... diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 743f30ca5ee8..537fbda7682e 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -204,9 +204,6 @@ hash_type_name (tree t) } v = DECL_ASSEMBLER_NAME (v); -#ifdef ENABLE_CHECKING - gcc_assert (!strchr (IDENTIFIER_POINTER (v), '.')); -#endif hash = iterative_hash_hashval_t (hash, htab_hash_pointer (v)); return hash; } diff --git a/gcc/tree.c b/gcc/tree.c index 7e44b402c96b..61815046fae3 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -11883,13 +11883,6 @@ types_same_for_odr (tree type1, tree type2) } v1 = DECL_ASSEMBLER_NAME (v1); v2 = DECL_ASSEMBLER_NAME (v2); - /* If we ever start adding random .blah suffixes after - assembler names, we need to compare for match ignoring - these (and update odr_type_hash, too). */ -#ifdef ENABLE_CHECKING - gcc_assert (!strchr (IDENTIFIER_POINTER (v1), '.') - && !strchr (IDENTIFIER_POINTER (v2), '.')); -#endif return (v1 == v2); }