From patchwork Sat Jul 14 18:49:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 171012 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 26EE12C00CD for ; Sun, 15 Jul 2012 04:49:37 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1342896578; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Date:From:To:Cc:Subject:Message-ID:Reply-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=9g/fof8wjBdR4uFltRLS nJaU7wQ=; b=EmPdIa946IdlwhYD2f40+x9FDKsi1nWgHWUrtc8sYR1hwUfiKdMj nE2bYXpx91W7FglwoxGiKanmofqYJIMwg0mAslPp8RMR67+OZfnGkD8NnuNZPgJT uvTPXPqwN6pi9r1hB+CSNc3uTwP07RYCKOMaisnLYHkcKv+qTbXCFhA= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-ExtLoop1:Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=pz5iUiIhlf0OsYB2g89+9BOqBggiDxVx1SrGxACppAiMxbeD8R1CNhV8W5PlrG tuSqGNU/x0fCUX0NshWkYQsmqPzwyP0vkqhMKr3tSKIN0DK3wlLw7hHfXgVMk2+s Wn0CRIK1vp3AdPadfTur+v4+39m7QToisShB4rUp974WY=; Received: (qmail 14783 invoked by alias); 14 Jul 2012 18:49:32 -0000 Received: (qmail 14775 invoked by uid 22791); 14 Jul 2012 18:49:31 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL, BAYES_00, FSL_FREEMAIL_1, KHOP_RCVD_UNTRUST, NO_DNS_FOR_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Jul 2012 18:49:18 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 14 Jul 2012 11:49:17 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by orsmga002.jf.intel.com with ESMTP; 14 Jul 2012 11:49:17 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 0AF25800CB; Sat, 14 Jul 2012 11:49:16 -0700 (PDT) Date: Sat, 14 Jul 2012 11:49:16 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de Subject: PATCH: PR bootstrap/53963: [4.8 Regression] LTO bootstrap failed with bootstrap-profiled Message-ID: <20120714184916.GA31238@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, Revision 189453: http://gcc.gnu.org/ml/gcc-cvs/2012-07/msg00357.html removes type attribute comparison in gimple_types_compatible_p_1 and caused PR middle-end/53959 and PR bootstrap/53963. This restores type attribute comparison. Tested on Linux/x86-64. OK to install? Thanks. H.J. --- 2012-07-14 H.J. Lu PR middle-end/53959 PR bootstrap/53963 * gimple.c (gimple_types_compatible_p_1): Restore type attribute comparison. diff --git a/gcc/gimple.c b/gcc/gimple.c index b419591..4d2a0f5 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -3422,6 +3422,10 @@ gimple_types_compatible_p_1 (tree t1, tree t2, type_pair_t p, goto different_types; } + /* If their attributes are not the same they can't be the same type. */ + if (!attribute_list_equal (TYPE_ATTRIBUTES (t1), TYPE_ATTRIBUTES (t2))) + goto different_types; + /* Do type-specific comparisons. */ switch (TREE_CODE (t1)) {