diff mbox

[libatomic] detect and build for ARM architecture armv8-a

Message ID 50BCDA8B.6000006@arm.com
State New
Headers show

Commit Message

Marcus Shawcroft Dec. 3, 2012, 4:59 p.m. UTC
libatomic does not build for --arch=armv8-a because there is no
architecture version detection.

This patch allows libatomic to build for armv8-a, but does not exploit
any of the new features of v8.

/Marcus

2012-12-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>

	* config/arm/arm-config.h (__ARM_ARCH_8A__): New.

Comments

Richard Henderson Dec. 3, 2012, 11:14 p.m. UTC | #1
On 2012-12-03 10:59, Marcus Shawcroft wrote:
> 2012-12-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
> 
>     * config/arm/arm-config.h (__ARM_ARCH_8A__): New.

Ok.


r~
diff mbox

Patch

diff --git a/libatomic/config/arm/arm-config.h b/libatomic/config/arm/arm-config.h
index b94a372..b99c82e 100644
--- a/libatomic/config/arm/arm-config.h
+++ b/libatomic/config/arm/arm-config.h
@@ -57,6 +57,10 @@ 
 # define __ARM_ARCH__ 7
 #endif
 
+#if defined(__ARM_ARCH_8A__)
+# define __ARM_ARCH__ 8
+#endif
+
 #ifndef __ARM_ARCH__
 #error Unable to determine architecture.
 #endif
-- 
1.7.9.5