From patchwork Mon Sep 7 03:02:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 53208 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 4350A22B05 for ; Mon, 7 Sep 2015 03:03:24 +0000 (UTC) Received: by laeb10 with SMTP id b10sf23233671lae.1 for ; Sun, 06 Sep 2015 20:03:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type:x-original-sender :x-original-authentication-results; bh=82oKlFkbhTlaz/Kmg3ufqLEdpD8hGkGzFBpG9NVUmjk=; b=bpJmhgo2/8E0a1BlpRDkYMaIjx/9hxKxKpKR8yaF3adZjEzb6aQ+hbXSjTbP589PQE c0DvbBP0zxCxX9v9cgQxxn70UBrZWRqImsQnJMaUcR0q7W33RFrpEeAHM79RInVUozIE gpX6Zt5sRblgud8gAp2VlyFrkkQSTqFQguW81wvOJIYet7vzsKfAzPgmF+Y3H9GoesZ0 EJGWbJLpR+3/57cBXMD/DkQboRIizUJk7sf5pbdys2M3P0eVb4VgVZK6INIXPvCJaR7e LhiFYtEfWiGoWbR07hB/hPQl/C+iViAtzKOdGYAfjM7XzP+JuWe7bL8Ggv+aIUZ+mp23 Iz3w== X-Gm-Message-State: ALoCoQkPW0fWU01K5t3V8S+dqNrwcRXF3NkEsYzsleXtIR2XVt0Kw/q24gSpHE1oNGHGQmTmZvAG X-Received: by 10.112.17.106 with SMTP id n10mr4403087lbd.18.1441595002878; Sun, 06 Sep 2015 20:03:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.243.39 with SMTP id wv7ls111365lac.85.gmail; Sun, 06 Sep 2015 20:03:22 -0700 (PDT) X-Received: by 10.112.172.201 with SMTP id be9mr14536179lbc.39.1441595002732; Sun, 06 Sep 2015 20:03:22 -0700 (PDT) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com. [2a00:1450:4010:c04::22e]) by mx.google.com with ESMTPS id dc11si9236150lac.110.2015.09.06.20.03.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Sep 2015 20:03:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22e as permitted sender) client-ip=2a00:1450:4010:c04::22e; Received: by lbbmp1 with SMTP id mp1so32639584lbb.1 for ; Sun, 06 Sep 2015 20:03:22 -0700 (PDT) X-Received: by 10.153.8.140 with SMTP id dk12mr656118lad.32.1441595002618; Sun, 06 Sep 2015 20:03:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp120851lbq; Sun, 6 Sep 2015 20:03:21 -0700 (PDT) X-Received: by 10.107.138.233 with SMTP id c102mr24398989ioj.187.1441595001081; Sun, 06 Sep 2015 20:03:21 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id qg6si17620610pdb.136.2015.09.06.20.03.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Sep 2015 20:03:21 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-406782-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 86314 invoked by alias); 7 Sep 2015 03:03:07 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 Received: (qmail 86281 invoked by uid 89); 7 Sep 2015 03:03:02 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL, BAYES_00, RAR_ATTACHED, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pa0-f44.google.com Received: from mail-pa0-f44.google.com (HELO mail-pa0-f44.google.com) (209.85.220.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 07 Sep 2015 03:03:01 +0000 Received: by padhy16 with SMTP id hy16so79787755pad.1 for ; Sun, 06 Sep 2015 20:02:59 -0700 (PDT) X-Received: by 10.68.65.3 with SMTP id t3mr40448216pbs.127.1441594979667; Sun, 06 Sep 2015 20:02:59 -0700 (PDT) Received: from [10.1.1.7] (58-6-183-210.dyn.iinet.net.au. [58.6.183.210]) by smtp.googlemail.com with ESMTPSA id lh4sm10003229pbc.19.2015.09.06.20.02.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Sep 2015 20:02:58 -0700 (PDT) Subject: [6/7] Temporary workaround to get aarch64 bootstrap To: "gcc-patches@gcc.gnu.org" References: <55ECFC2A.7050908@linaro.org> Cc: Richard Biener From: Kugan Message-ID: <55ECFE5C.6010001@linaro.org> Date: Mon, 7 Sep 2015 13:02:52 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55ECFC2A.7050908@linaro.org> X-IsSubscribed: yes X-Original-Sender: kugan.vivekanandarajah@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22e as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 AARCH64 bootstrap problem that started happening with the commit 94f92c36a83d66a893c3bc6f00a038ba3dbe2a6f. simplify-rtx.c mis-compiled in stage due to this fwprop.c is failing. It looks to me that there is a latent issue which gets exposed my patch. I can also reproduce this in x86_64 if I use the same PROMOTE_MODE which is used in aarch64 port. For the time being, I am using patch 0006-temporary-workaround-for-bootstrap-failure-due-to-co.patch as a workaround . >From 6a10c856374446ab6d18eb9ce840c08cac440a61 Mon Sep 17 00:00:00 2001 From: Kugan Vivekanandarajah Date: Tue, 1 Sep 2015 08:44:59 +1000 Subject: [PATCH 6/8] temporary workaround for bootstrap failure due to copy coalescing --- gcc/tree-ssa-coalesce.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/tree-ssa-coalesce.c b/gcc/tree-ssa-coalesce.c index 6468012..b18f0b8 100644 --- a/gcc/tree-ssa-coalesce.c +++ b/gcc/tree-ssa-coalesce.c @@ -1384,11 +1384,13 @@ gimple_can_coalesce_p (tree name1, tree name2) SSA_NAMEs. Now, if a parm or result has BLKmode, do not coalesce its SSA versions with those of any other variables, because it may be passed by reference. */ - return ((!var1 || VAR_P (var1)) && (!var2 || VAR_P (var2))) + return ((!var1 || VAR_P (var1)) && (!var2 || VAR_P (var2))); +#if 0 || (/* The case var1 == var2 is already covered above. */ !parm_in_stack_slot_p (var1) && !parm_in_stack_slot_p (var2) && promote_ssa_mode (name1, NULL) == promote_ssa_mode (name2, NULL)); +#endif } /* If the types are not the same, check for a canonical type match. This -- 1.9.1