From patchwork Sat Mar 22 06:42:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 26894 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E3E4203AB for ; Sat, 22 Mar 2014 06:43:09 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id i17sf7834892qcy.3 for ; Fri, 21 Mar 2014 23:43:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=nNr9tUntCHGbaGmXqPT15L+yJpd0FTqhv/8SULudFFQ=; b=XtFYrjJxRyxKPpoepUd8wIiTgsfnFkWXi6l8SYMyavxVP2RrN+9w9yUujknhV8T3Od ypwDNukPdJhIgKw3zv/indRHjpRrRWUb/U6g7FNECyv7HIoOeVc2VMKa+njeqvdOxZwT rEOsj0Y2OVJIiFBoPdqZigYXQuRplYbCt0nzvs6W+6pcJB/TPQXF+GXhFfgcJTrcNGaa b9a+zLfSzV/qrJ0GjdZqAGHoMxbbEJqt/S42AbKeKyQG/xSpFL8aLQnRvo29FtgdMqEg NbptJ2KVQt1EBGCMGf+0jgiL93nCwucd3uFvwF2oOmFF42sLiDwMqHsvk7ZueYEPFE+w y0mQ== X-Gm-Message-State: ALoCoQnnjzKO3RXX4QeBnLdrT8R+6S7VwDQhBWglQOQM6EZpBlcvQ4iQlM0rhqzJ5ut6Td+E7lEQ X-Received: by 10.236.90.200 with SMTP id e48mr14342410yhf.28.1395470589081; Fri, 21 Mar 2014 23:43:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.10 with SMTP id i10ls882996qgf.62.gmail; Fri, 21 Mar 2014 23:43:09 -0700 (PDT) X-Received: by 10.52.12.36 with SMTP id v4mr35433152vdb.20.1395470589008; Fri, 21 Mar 2014 23:43:09 -0700 (PDT) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [2607:f8b0:400c:c01::232]) by mx.google.com with ESMTPS id sc12si1664903veb.133.2014.03.21.23.43.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 23:43:08 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::232; Received: by mail-ve0-f178.google.com with SMTP id jw12so3568060veb.37 for ; Fri, 21 Mar 2014 23:43:08 -0700 (PDT) X-Received: by 10.221.27.8 with SMTP id ro8mr236768vcb.30.1395470588892; Fri, 21 Mar 2014 23:43:08 -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.220.78.9 with SMTP id i9csp81468vck; Fri, 21 Mar 2014 23:43:08 -0700 (PDT) X-Received: by 10.66.11.66 with SMTP id o2mr35605226pab.142.1395470588104; Fri, 21 Mar 2014 23:43:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sh5si5024923pbc.149.2014.03.21.23.43.07; Fri, 21 Mar 2014 23:43:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751740AbaCVGnC (ORCPT + 26 others); Sat, 22 Mar 2014 02:43:02 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:36478 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525AbaCVGnA (ORCPT ); Sat, 22 Mar 2014 02:43:00 -0400 Received: by mail-pa0-f49.google.com with SMTP id lj1so3286341pab.22 for ; Fri, 21 Mar 2014 23:43:00 -0700 (PDT) X-Received: by 10.68.37.42 with SMTP id v10mr41393553pbj.127.1395470580068; Fri, 21 Mar 2014 23:43:00 -0700 (PDT) Received: from localhost.localdomain ([75.148.49.89]) by mx.google.com with ESMTPSA id gj9sm13727061pbc.7.2014.03.21.23.42.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 23:42:58 -0700 (PDT) From: behanw@converseincode.com To: linux@arm.linux.org.uk Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dwmw2@infradead.org, pageexec@freemail.hu, Mark Charlebois , Behan Webster Subject: [PATCH] unwind_support Date: Fri, 21 Mar 2014 23:42:54 -0700 Message-Id: <1395470574-17056-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.8.3.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (no key for signature) header.i=@converseincode.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mark Charlebois Patch to prevent warning of a buggy compiler when using clang and the ARM_UNWIND option. Clang defines (at least on the current trunk) GNUC, GNUC_MINOR, and GNUC_PATCHLEVEL to 4, 2, and 1 respectively. This version of GCC gets flagged as buggy, but it isn't actually an issue with clang so the patch will do what it did before unless clang is defined and then it will not report the GCC version as an issue. Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster --- arch/arm/kernel/unwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c index 00df012..321c4f9 100644 --- a/arch/arm/kernel/unwind.c +++ b/arch/arm/kernel/unwind.c @@ -31,7 +31,7 @@ #warning Your compiler does not have EABI support. #warning ARM unwind is known to compile only with EABI compilers. #warning Change compiler or disable ARM_UNWIND option. -#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2) +#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 2) && !defined(__clang__) #warning Your compiler is too buggy; it is known to not compile ARM unwind support. #warning Change compiler or disable ARM_UNWIND option. #endif