From patchwork Thu Sep 18 11:19:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 390762 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 5CBD11401AF for ; Thu, 18 Sep 2014 21:19:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CE806A1370; Thu, 18 Sep 2014 11:19:30 +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 wPtv7UUcdH98; Thu, 18 Sep 2014 11:19:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 92BEAA1363; Thu, 18 Sep 2014 11:19:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 973321C1E77 for ; Thu, 18 Sep 2014 11:19:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8FA1C8FFAF for ; Thu, 18 Sep 2014 11:19:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T5wfTILH02BU for ; Thu, 18 Sep 2014 11:19:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.60.111]) by whitealder.osuosl.org (Postfix) with ESMTPS id AEF708FED2 for ; Thu, 18 Sep 2014 11:19:25 +0000 (UTC) Received: from us02secmta1.synopsys.com (us02secmta1.synopsys.com [10.12.235.96]) by smtprelay.synopsys.com (Postfix) with ESMTP id 3F40710C0E60; Thu, 18 Sep 2014 04:19:24 -0700 (PDT) Received: from us02secmta1.internal.synopsys.com (us02secmta1.internal.synopsys.com [127.0.0.1]) by us02secmta1.internal.synopsys.com (Service) with ESMTP id 027C74E213; Thu, 18 Sep 2014 04:19:24 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.9.202.240]) by us02secmta1.internal.synopsys.com (Service) with ESMTP id CFC2F4E202; Thu, 18 Sep 2014 04:19:23 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id C2227A96; Thu, 18 Sep 2014 04:19:23 -0700 (PDT) Received: from abrodkin-8560l.internal.synopsys.com (abrodkin-8560l.internal.synopsys.com [10.121.8.123]) by mailhost.synopsys.com (Postfix) with ESMTP id 20D1FA87; Thu, 18 Sep 2014 04:19:21 -0700 (PDT) From: Alexey Brodkin To: buildroot@buildroot.org Date: Thu, 18 Sep 2014 15:19:12 +0400 Message-Id: <1411039152-15365-1-git-send-email-abrodkin@synopsys.com> X-Mailer: git-send-email 1.9.3 Cc: Thomas Petazzoni , Alexey Brodkin Subject: [Buildroot] [PATCH] ARC: gcc - Redefine PTRDIFF_TYPE from "long int" to "int" 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" Change of SIZE_TYPE from "long unsigned int" to "unsigned int" http://git.buildroot.net/buildroot/commit/?id=0f236c1fef669192c8f5cc8ef26e93da91438dc2 introduced regression due to existing PTRDIFF_TYPE. Now to fix regression convert PTRDIFF_TYPE to simple "int". Fix is taken from current development branch of GCC for ARC and will be a part of the next release of ARC tools, so at that point patch should be dropped. https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/846e92167aa4f486259c9ff44bb4e6cce6097fa4 Signed-off-by: Alexey Brodkin Cc: Anton Kolesov Cc: Thomas Petazzoni Cc: Peter Korsgaard --- package/gcc/arc-2014.08/300-ptrdiff_type_int.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/gcc/arc-2014.08/300-ptrdiff_type_int.patch diff --git a/package/gcc/arc-2014.08/300-ptrdiff_type_int.patch b/package/gcc/arc-2014.08/300-ptrdiff_type_int.patch new file mode 100644 index 0000000..6ee765b --- /dev/null +++ b/package/gcc/arc-2014.08/300-ptrdiff_type_int.patch @@ -0,0 +1,26 @@ +Redefine PTRDIFF_TYPE + +Change of SIZE_TYPE from "long unsigned int" to "unsigned int" introduced +regression due to existing PTRDIFF_TYPE. + +Now to fix regression convert PTRDIFF_TYPE to simple "int". + +Fix is taken from current development branch of GCC for ARC and will be a +part of the next release of ARC tools, so at that point patch should be dropped. + +https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/846e92167aa4f486259c9ff44bb4e6cce6097fa4 + +Signed-off-by: Claudiu Zissulescu +--- + +--- a/gcc/config/arc/arc.h ++++ b/gcc/config/arc/arc.h +@@ -488,7 +488,7 @@ if (GET_MODE_CLASS (MODE) == MODE_INT \ + #define DEFAULT_SIGNED_CHAR 0 + + #define SIZE_TYPE "unsigned int" +-#define PTRDIFF_TYPE "long int" ++#define PTRDIFF_TYPE "int" + #define WCHAR_TYPE "int" + #define WCHAR_TYPE_SIZE 32 +