http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46796
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |lto
CC| |rguenth at gcc dot gnu.org
Component|lto |debug
Summary|debug info missing builtin |debug info missing builtin
|type names on darwin |type names with lto
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-03
23:51:27 UTC ---
Sth like
Index: gimple.c
===================================================================
--- gimple.c (revision 167445)
+++ gimple.c (working copy)
@@ -3436,6 +3436,10 @@ gtc_visit (tree t1, tree t2, enum gtc_mo
if (TREE_CODE (t1) == VOID_TYPE)
return true;
+ if (mode == GTC_MERGE
+ && !compare_type_names_p (t1, t2, false))
+ return false;
+
/* Do some simple checks before doing three hashtable queries. */
if (INTEGRAL_TYPE_P (t1)
|| SCALAR_FLOAT_TYPE_P (t1)
@@ -3874,6 +3878,10 @@ gimple_types_compatible_p (tree t1, tree
if (TREE_CODE (t1) == VOID_TYPE)
return true;
+ if (mode == GTC_MERGE
+ && !compare_type_names_p (t1, t2, false))
+ return false;
+
/* Do some simple checks before doing three hashtable queries. */
if (INTEGRAL_TYPE_P (t1)
|| SCALAR_FLOAT_TYPE_P (t1)
could fix this at the cost of some memory.