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

login
register
mail settings
Submitter Marcus Shawcroft
Date Dec. 3, 2012, 4:59 p.m.
Message ID <50BCDA8B.6000006@arm.com>
Download mbox | patch
Permalink /patch/203400/
State New
Headers show

Comments

Marcus Shawcroft - Dec. 3, 2012, 4:59 p.m.
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.
Richard Henderson - Dec. 3, 2012, 11:14 p.m.
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~

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