This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/46796] debug info missing builtin type names with lto
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 3 Dec 2010 23:51:41 +0000
- Subject: [Bug debug/46796] debug info missing builtin type names with lto
- Auto-submitted: auto-generated
- References: <bug-46796-4@http.gcc.gnu.org/bugzilla/>
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.