Commit 7d2ba471 by Jan Hubicka Committed by Jan Hubicka

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
parent 0db7b137
2013-09-04 Jan Hubicka <jh@suse.cz> 2013-09-04 Jan Hubicka <jh@suse.cz>
* tree.c (types_same_for_odr): Drop overactive check.
* ipa-devirt.c (hash_type_name): Likewise.
2013-09-04 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (walk_polymorphic_call_targets): Break out from ... * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
(analyze_functions): ... here. (analyze_functions): ... here.
......
...@@ -204,9 +204,6 @@ hash_type_name (tree t) ...@@ -204,9 +204,6 @@ hash_type_name (tree t)
} }
v = DECL_ASSEMBLER_NAME (v); 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)); hash = iterative_hash_hashval_t (hash, htab_hash_pointer (v));
return hash; return hash;
} }
......
...@@ -11883,13 +11883,6 @@ types_same_for_odr (tree type1, tree type2) ...@@ -11883,13 +11883,6 @@ types_same_for_odr (tree type1, tree type2)
} }
v1 = DECL_ASSEMBLER_NAME (v1); v1 = DECL_ASSEMBLER_NAME (v1);
v2 = DECL_ASSEMBLER_NAME (v2); 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); return (v1 == v2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment