From patchwork Sat Mar 5 11:31:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 592357 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 24E4A1401C7 for ; Sat, 5 Mar 2016 22:31:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=lSpSsKLX; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 359F295B34; Sat, 5 Mar 2016 11:31:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LteYz52V5sFZ; Sat, 5 Mar 2016 11:31:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 696AC955E1; Sat, 5 Mar 2016 11:31:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3970B1C170F for ; Sat, 5 Mar 2016 11:31:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 36686A5CDE for ; Sat, 5 Mar 2016 11:31:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ofo5-y8euDQW for ; Sat, 5 Mar 2016 11:31:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 05E90A5D06 for ; Sat, 5 Mar 2016 11:31:48 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id n186so23942172wmn.1 for ; Sat, 05 Mar 2016 03:31:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=3X18NiSCqXCVbyB6Jl+OQR4l0dsIcCcs1Fc02IjSCis=; b=lSpSsKLXz3Mrj1ZMVJrIykT2Ch218rsI+4w0C7+KbW5bfejkH3QBAQ10dVfcVVbJk1 aZESLbbr7ACFpUFJJvFGpLSzZ8NnX+Zlaad82Uy1dnZiZUZIlCrdV5XAJ9jwJN7MCzvs vq5m/h4shGv/BpTT4lgP6YR3Q1u8EMSGGWORDHIEyLnNhDYbtD31Z7WROmydX1XQIkHj 78t9U4W/X9cPOZ2jcpaImZkplg7mcEMyHfMwb2fb/UPO4H5jzl6JCsZeVHKUfghZoIfC ENGJjSJiCxfvJMs+Byc+Aw2bYeVjWF2dWClzHGn4hud6vK1ENi8GbLi8PIkgwZUVVzg0 K2qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3X18NiSCqXCVbyB6Jl+OQR4l0dsIcCcs1Fc02IjSCis=; b=FMbkNepgKYs+Xe2PuoiKrLtFxNDHe7fOAnRedO4LnXHna+KpxF9Ja8EU5n896jbNXW bCqNbU35ES+4kCt3GsN6AA39rI2M3+wj7USJXjssoFAW1e9HXrgROoJXU4uUbOHiqELL a4QSgQUfo3HbT+xOqdAsa32NvjpTFAw1kQuLRri1tA/GJk3QQcCUjhymKBiLqkRnuOnF 87WN97b61JdC6BvHUOQs7Vic3YbOhR/cxZ2gGIohj1cmR/Odk4MkWDBxN3i/uOF6rPZg If4Pyvu1WCrzwxBywXL8R5QlNt5/dxC1Y+NMbWc7t+/MEBVzHQMj3ZskX7AKHDDZYFDv aklw== X-Gm-Message-State: AD7BkJKo8uLPGAIQThwYQL/AdwoHVJwhantXAHccbe+5fLqT2VQEeEJiDfpqbErwEq+FNw== X-Received: by 10.194.22.35 with SMTP id a3mr13483324wjf.165.1457177506649; Sat, 05 Mar 2016 03:31:46 -0800 (PST) Received: from adeos.localdomain (gam75-1-81-57-22-125.fbx.proxad.net. [81.57.22.125]) by smtp.gmail.com with ESMTPSA id u4sm7783515wjz.4.2016.03.05.03.31.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Mar 2016 03:31:46 -0800 (PST) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 5 Mar 2016 12:31:36 +0100 Message-Id: <1457177496-11919-1-git-send-email-romain.naour@gmail.com> X-Mailer: git-send-email 2.5.0 Cc: Romain Naour Subject: [Buildroot] [PATCH] package/gcc: 4.9.x: backport a fix for libcap-ng issue on nios2 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The patch is part of gcc 5.3 release. Fixes: http://autobuild.buildroot.net/results/901/90186d1fe134b804c0101554296b1235dc0ccbb0 Signed-off-by: Romain Naour Cc: Sergio Prado Tested-by: Sergio Prado --- .../gcc/4.9.3/880-nios2_legitimize_address.patch | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 package/gcc/4.9.3/880-nios2_legitimize_address.patch diff --git a/package/gcc/4.9.3/880-nios2_legitimize_address.patch b/package/gcc/4.9.3/880-nios2_legitimize_address.patch new file mode 100644 index 0000000..4623f29 --- /dev/null +++ b/package/gcc/4.9.3/880-nios2_legitimize_address.patch @@ -0,0 +1,49 @@ +From b0ea54f3f995754881e0ea6651133aa7b58eeaa2 Mon Sep 17 00:00:00 2001 +From: cltang +Date: Tue, 22 Sep 2015 12:23:20 +0000 +Subject: [PATCH] nios2_legitimize_address 2015-09-22 Chung-Lin Tang + + + Backport from mainline + 2015-09-22 Chung-Lin Tang + + * config/nios2/nios2.c (nios2_legitimize_address): When handling + 'reg + reloc' cases, allow first operand to be non-REG, and use + force_reg() to enforce address pattern. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@228013 138bc75d-0d04-0410-961f-82ee72b054a4 + +Fixes: +http://autobuild.buildroot.net/results/901/90186d1fe134b804c0101554296b1235dc0ccbb0 + +[backported to 4.9.3] +Signed-off-by: Romain Naour +--- + gcc/config/nios2/nios2.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c +index 047b615..41dd6f9 100644 +--- a/gcc/config/nios2/nios2.c ++++ b/gcc/config/nios2/nios2.c +@@ -1786,15 +1786,15 @@ nios2_legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED, + + Which will be output as '%tls_le(var+48)(r23)' in assembly. */ + if (GET_CODE (x) == PLUS +- && GET_CODE (XEXP (x, 0)) == REG + && GET_CODE (XEXP (x, 1)) == CONST) + { +- rtx unspec, offset, reg = XEXP (x, 0); ++ rtx unspec, offset; + split_const (XEXP (x, 1), &unspec, &offset); + if (GET_CODE (unspec) == UNSPEC + && !nios2_large_offset_p (XINT (unspec, 1)) + && offset != const0_rtx) + { ++ rtx reg = force_reg (Pmode, XEXP (x, 0)); + unspec = copy_rtx (unspec); + XVECEXP (unspec, 0, 0) + = plus_constant (Pmode, XVECEXP (unspec, 0, 0), INTVAL (offset)); +-- +2.5.0 +