From patchwork Sun Mar 11 00:42:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 131325 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp2623630lja; Sat, 10 Mar 2018 16:45:13 -0800 (PST) X-Google-Smtp-Source: AG47ELs2kI7FPtQlm95faNMZ4tFbmZloP/OUAbp2hODBtzZXasFwgqsN9iLg39vhgLu2/XuyQyI1 X-Received: by 2002:a17:902:167:: with SMTP id 94-v6mr3503794plb.294.1520729113861; Sat, 10 Mar 2018 16:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520729113; cv=none; d=google.com; s=arc-20160816; b=NAmhg/dR3seEVpI85O+aRUIohVPTHc82TDcrLQB4zAzQRafjKcqNQ76mSlmd0eXHDl Mox7n+1iLAxnc+7f1awHslFgECWDCid9qPhIiHEK+VXtVI1EeLQBEeTa3CtRBSKtdGni JDrDw+HvtwijSVgniQs1EbUxf1Jg7X6W6FyE7UivQgGj3p9M3Lt7DRcaM0KuefZ6Ivtw d92ErOmdwkkP3cWNfnOZi3vwuFgD1dvc+W5cZPw1N1snELD3/SZF8PfBEFM3osQBn0ez g2mTvGn03dXWCaP2YVnNRwXO10Wvy3pAbEaspVqczxpYSflWQ0fOwYHeUdCST5yp5Jir I34A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=tCPWjq1zK95gfO3HMxRvYOAYhnm9jOfL8m4QwIquHRQ=; b=lhqj80ZKigKt5WwR1d1bJV/5ZunU5mdMwN87Rvpa/TW+zsh2i2Tbu2DZ3p5ppCBgEs Dk3je/MfQpaDxytLoU5bTkjlmjGs66UWJeD2tje0R3bUFVhclvO1DDQ9LeQL40I57A9C QgKgY7cEU3k7p7ulRFfDufZUJoecTE9azPFDcWi2843wVY5fNmKPCUX7XMbvjolQ00SW GYKGB/XYWAY3WXfiRiT6Zea/vyEXEzxJTrQsxGRQNwTDf5rDhg0dl7aqgQIH9PmioyJQ 3Scop5obwU8Z4m2vY/iBeMkl5zNismuopN5TaaAj4/mLKtOs0r3w6mpUJ2APmTH2kwAY lS4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=CCG3GJTm; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 88-v6si3533424pla.148.2018.03.10.16.45.13; Sat, 10 Mar 2018 16:45:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=CCG3GJTm; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 95E0778942; Sun, 11 Mar 2018 00:43:12 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr0-f181.google.com (mail-wr0-f181.google.com [209.85.128.181]) by mail.openembedded.org (Postfix) with ESMTP id D5C81788F0 for ; Sun, 11 Mar 2018 00:43:01 +0000 (UTC) Received: by mail-wr0-f181.google.com with SMTP id n12so1163526wra.2 for ; Sat, 10 Mar 2018 16:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=87QczNRTCOSxPcZpv1aGTwcpIZpmqJCSrmGhiQ1AX1c=; b=CCG3GJTmJsk9XvgvS7r5WLQ1DLp4ZiNEqrH5Ufk/IT6VKy4kdLBYH9+N5o1bYwp4Nr qlpA/RjESe16oZlswO3ut3qmoUcP+18tLXrKB1/ZfUY8EosIiLBJAxklkL/emJ1Wpx77 oybgbHlK+AGFK2NwctBBHdYgCP7GKldnK4r2FuUkqV9SDr8WpO1GnzMGdnaRbbFlj6fr WOjIxm5t2j829Qk9okjU8IfLM8r44I/KgM3lH9ngBLaqliyrw1VIWZ2GMKTT00lDu48v lizq0H+ct1YB3DPhaTqfSlmEfWquoP9OPhbf7WuRicghDbiUohLh3VDym0yH2Mt3VbJq NC+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=87QczNRTCOSxPcZpv1aGTwcpIZpmqJCSrmGhiQ1AX1c=; b=KW005HEBjEFJIdEMgraCWeRpqsobb/Qc6F/sxFWYzAx5qSsUfGdgBOrI+zfIibWzU1 i5GMcj+flfSZVLt8CRRy1PZiT+q8TWO1A9wvWGCdr0q29yrNAYJGWam07LlUkU84zyDW kM6KvJFUaN2pMXuHWu38DSVpFhlbEN6Pp3QFmN5Uprm/0/F2bKyOQyhEI+P2LmE1/oRD ibMhdPVF+n1mBpyW3Jnkp97yPrBrO9oE8Q2HUg8SUHaFePy7Q/t2ILFWJamrQr5/HKsi 80lKpYb1QNa+W+9fsCHXBDsry2QE4UCsMyygwxg7VeB63lgLVP07yKHgP9xrsgQ3xEpa gcCw== X-Gm-Message-State: AElRT7FbCK7XfbHI+1U/lVTIEWRUs5qzHi3SKJ4V1nk0y/xekgtlmpQr DhJUOfz7ko4iSAxH+sIxP2SnqQ== X-Received: by 10.223.134.99 with SMTP id 32mr2351069wrw.153.1520728982740; Sat, 10 Mar 2018 16:43:02 -0800 (PST) Received: from localhost ([217.30.68.212]) by smtp.gmail.com with ESMTPSA id 4sm1966861wmz.31.2018.03.10.16.43.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Mar 2018 16:43:01 -0800 (PST) From: Martin Jansa X-Google-Original-From: Martin Jansa To: Armin Kuster , openembedded-core@lists.openembedded.org Date: Sun, 11 Mar 2018 00:42:53 +0000 Message-Id: X-Mailer: git-send-email 2.15.1 In-Reply-To: References: Subject: [OE-core] [pyro][PATCH 2/6] gcc-6.3: Backport patch to fix ICE on ARM X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj Fixes internal compiler error: Max. number of generated reload insns per insn is achieved (90) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-devtools/gcc/gcc-6.3.inc | 1 + ...-relax-the-restriction-on-subreg-reload-f.patch | 51 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-6.3/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch -- 2.15.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/gcc/gcc-6.3.inc b/meta/recipes-devtools/gcc/gcc-6.3.inc index 5c81a33af0..7b409f119b 100644 --- a/meta/recipes-devtools/gcc/gcc-6.3.inc +++ b/meta/recipes-devtools/gcc/gcc-6.3.inc @@ -81,6 +81,7 @@ SRC_URI = "\ file://0048-sync-gcc-stddef.h-with-musl.patch \ file://0054_all_nopie-all-flags.patch \ file://0055-unwind_h-glibc26.patch \ + file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch \ ${BACKPORTS} \ " BACKPORTS = "\ diff --git a/meta/recipes-devtools/gcc/gcc-6.3/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch b/meta/recipes-devtools/gcc/gcc-6.3/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch new file mode 100644 index 0000000000..231f147619 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-6.3/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch @@ -0,0 +1,51 @@ +From a582b0a53d1dc8604a201348b99ca8de48784e7e Mon Sep 17 00:00:00 2001 +From: jiwang +Date: Thu, 12 May 2016 17:00:52 +0000 +Subject: [PATCH] [LRA] PR70904, relax the restriction on subreg reload for + wide mode + +2016-05-12 Jiong Wang + +gcc/ + PR rtl-optimization/70904 + * lra-constraint.c (process_addr_reg): Relax the restriction on + subreg reload for wide mode. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236181 138bc75d-0d04-0410-961f-82ee72b054a4 +--- +Upstream-Status: Backport +Signed-off-by: Khem Raj + + gcc/lra-constraints.c | 16 +++++++++++++++- + 1 file changed, 15 insertions(+), 1 deletion(-) + +diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c +index f96fd458e23..73fb72a2ea5 100644 +--- a/gcc/lra-constraints.c ++++ b/gcc/lra-constraints.c +@@ -1326,7 +1326,21 @@ process_addr_reg (rtx *loc, bool check_only_p, rtx_insn **before, rtx_insn **aft + + subreg_p = GET_CODE (*loc) == SUBREG; + if (subreg_p) +- loc = &SUBREG_REG (*loc); ++ { ++ reg = SUBREG_REG (*loc); ++ mode = GET_MODE (reg); ++ ++ /* For mode with size bigger than ptr_mode, there unlikely to be "mov" ++ between two registers with different classes, but there normally will ++ be "mov" which transfers element of vector register into the general ++ register, and this normally will be a subreg which should be reloaded ++ as a whole. This is particularly likely to be triggered when ++ -fno-split-wide-types specified. */ ++ if (in_class_p (reg, cl, &new_class) ++ || GET_MODE_SIZE (mode) <= GET_MODE_SIZE (ptr_mode)) ++ loc = &SUBREG_REG (*loc); ++ } ++ + reg = *loc; + mode = GET_MODE (reg); + if (! REG_P (reg)) +-- +2.14.2 +