]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/ProcessorBind.h: Add ARM and AArch64 GCC macros for Clang
authorOlivier Martin <olivier.martin@arm.com>
Fri, 31 Oct 2014 14:05:09 +0000 (14:05 +0000)
committeroliviermartin <oliviermartin@Edk2>
Fri, 31 Oct 2014 14:05:09 +0000 (14:05 +0000)
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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16282 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/AArch64/ProcessorBind.h
MdePkg/Include/Arm/ProcessorBind.h

index f09b15a55800bf9a17f2bf81a80c0dd2a9e1f996..c5fe874b1bd016de2fc634bfaaaa2ca5a3d926a1 100644 (file)
@@ -111,7 +111,9 @@ typedef INT64   INTN;
 //\r
 #define EFIAPI\r
 \r
-#if defined(__GNUC__)\r
+// When compiling with Clang, we still use GNU as for the assembler, so we still\r
+// need to define the GCC_ASM* macros.\r
+#if defined(__GNUC__) || defined(__clang__)\r
   ///\r
   /// For GNU assembly code, .global or .globl can declare global symbols.\r
   /// Define this macro to unify the usage.\r
index cc763b396b53b745586f8496c1fd14df840c67bb..c2482c2f50f0efeb3b0b1ff18fbb20b68cc13bfa 100644 (file)
@@ -110,7 +110,9 @@ typedef INT32   INTN;
 //\r
 #define EFIAPI    \r
 \r
-#if defined(__GNUC__)\r
+// When compiling with Clang, we still use GNU as for the assembler, so we still\r
+// need to define the GCC_ASM* macros.\r
+#if defined(__GNUC__) || defined(__clang__)\r
   ///\r
   /// For GNU assembly code, .global or .globl can declare global symbols.\r
   /// Define this macro to unify the usage.\r