From patchwork Thu Oct 30 14:29:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Martin X-Patchwork-Id: 39838 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ADE0B202FE for ; Thu, 30 Oct 2014 14:29:39 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf3261933eek.1 for ; Thu, 30 Oct 2014 07:29:38 -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:from:to:date:message-id:cc:subject :precedence:reply-to:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=CBIyvzGEW641Xv12j6sNaSPN72iHARI/8ljPWG2AA88=; b=T0MdorE26fkVj/ah1L9ppAlpZeb8BFGe5iAOZNn6++KDl8VN2euujmy385wUqWw894 461JashGeAW30ktzEw4sYUFicCpZ75/KBbf7/FsBPO5COQm6Z/ctTpW5eLUoAi36v2td Png9EcrISaBdGsgdaub/VQ68DdXZSIBJCwRjd1KAVUvKneUrvSlgRyZvSQzyavmaiXtN vUdB6mTIQJ4PwQtEG52ooT8cQPAcsN6UkfrX7nq0189JZZCS0Zp0Ui/71pIvkZf6sTm7 Q/wA4NthlKg5n3kCXmzBjRDilSEQylsLGjvDGmSEwC7BQ6k6t2ib9t50ZRmTfept/pwh PVjA== X-Gm-Message-State: ALoCoQkDiaTCXWgwUDukKwgcMBxhOKDanQoY/bKUnXSzAfl5yhhw0nEHJ5QbhTssKVuWsfBagBGu X-Received: by 10.112.89.195 with SMTP id bq3mr582371lbb.9.1414679378794; Thu, 30 Oct 2014 07:29:38 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.41 with SMTP id q9ls288060lag.67.gmail; Thu, 30 Oct 2014 07:29:38 -0700 (PDT) X-Received: by 10.112.162.73 with SMTP id xy9mr11005551lbb.94.1414679378647; Thu, 30 Oct 2014 07:29:38 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id ay11si11040022lab.132.2014.10.30.07.29.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 07:29:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id w7so4402920lbi.10 for ; Thu, 30 Oct 2014 07:29:38 -0700 (PDT) X-Received: by 10.152.120.199 with SMTP id le7mr19028231lab.67.1414679378512; Thu, 30 Oct 2014 07:29:38 -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.84.229 with SMTP id c5csp52423lbz; Thu, 30 Oct 2014 07:29:37 -0700 (PDT) X-Received: by 10.43.110.135 with SMTP id ek7mr2456946icc.79.1414679377196; Thu, 30 Oct 2014 07:29:37 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id qd1si25533391igb.23.2014.10.30.07.29.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 Oct 2014 07:29:37 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Xjqj7-0004h9-Bb; Thu, 30 Oct 2014 14:29:25 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Xjqj6-0004gw-0q for edk2-devel@lists.sourceforge.net; Thu, 30 Oct 2014 14:29:24 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of arm.com designates 217.140.96.21 as permitted sender) client-ip=217.140.96.21; envelope-from=olivier.martin@arm.com; helo=cam-smtp0.cambridge.arm.com; Received: from fw-tnat.cambridge.arm.com ([217.140.96.21] helo=cam-smtp0.cambridge.arm.com) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1Xjqj4-0007OL-OV for edk2-devel@lists.sourceforge.net; Thu, 30 Oct 2014 14:29:23 +0000 Received: from e102605-lin.cambridge.arm.com (e102605-lin.cambridge.arm.com [10.1.193.159]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id s9UETDdJ029267; Thu, 30 Oct 2014 14:29:13 GMT From: Olivier Martin To: michael.d.kinney@intel.com Date: Thu, 30 Oct 2014 14:29:04 +0000 Message-Id: <1414679344-4154-1-git-send-email-olivier.martin@arm.com> X-Mailer: git-send-email 2.1.1 X-Spam-Score: -2.1 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1Xjqj4-0007OL-OV Cc: edk2-devel@lists.sourceforge.net Subject: [edk2] [PATCH] MdePkg/ProcessorBind.h: Add ARM and AArch64 GCC macros for Clang X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: olivier.martin@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 When compiling with Clang, we still use GNU as for the assembler, so we still need to define the GCC_ASM* macros. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin --- MdePkg/Include/AArch64/ProcessorBind.h | 4 +++- MdePkg/Include/Arm/ProcessorBind.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/AArch64/ProcessorBind.h b/MdePkg/Include/AArch64/ProcessorBind.h index f09b15a..c5fe874 100644 --- a/MdePkg/Include/AArch64/ProcessorBind.h +++ b/MdePkg/Include/AArch64/ProcessorBind.h @@ -111,7 +111,9 @@ typedef INT64 INTN; // #define EFIAPI -#if defined(__GNUC__) +// When compiling with Clang, we still use GNU as for the assembler, so we still +// need to define the GCC_ASM* macros. +#if defined(__GNUC__) || defined(__clang__) /// /// For GNU assembly code, .global or .globl can declare global symbols. /// Define this macro to unify the usage. diff --git a/MdePkg/Include/Arm/ProcessorBind.h b/MdePkg/Include/Arm/ProcessorBind.h index cc763b3..c2482c2 100644 --- a/MdePkg/Include/Arm/ProcessorBind.h +++ b/MdePkg/Include/Arm/ProcessorBind.h @@ -110,7 +110,9 @@ typedef INT32 INTN; // #define EFIAPI -#if defined(__GNUC__) +// When compiling with Clang, we still use GNU as for the assembler, so we still +// need to define the GCC_ASM* macros. +#if defined(__GNUC__) || defined(__clang__) /// /// For GNU assembly code, .global or .globl can declare global symbols. /// Define this macro to unify the usage.