From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5323 invoked by alias); 3 Dec 2010 23:51:47 -0000 Received: (qmail 5311 invoked by uid 22791); 3 Dec 2010 23:51:46 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Dec 2010 23:51:42 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/46796] debug info missing builtin type names with lto X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Keywords CC Component Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 03 Dec 2010 23:51:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-12/txt/msg00385.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46796 Richard Guenther 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 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.