]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[ARM][PR target/78945] Fix libatomic on armv7-m
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 7 Feb 2017 12:51:00 +0000 (12:51 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Tue, 7 Feb 2017 12:51:00 +0000 (12:51 +0000)
libatomic/

Backport from mainline:
2017-01-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR target/78945
* config/arm/exch_n.c (libat_exchange): Check __ARM_FEATURE_SIMD32.

From-SVN: r245247

libatomic/ChangeLog
libatomic/config/arm/exch_n.c

index 488ec85588f44d1949413a022b5c4466f3266416..916db3cf95cfec8797c579b8d9a4242db848f2f5 100644 (file)
@@ -1,3 +1,11 @@
+2017-02-07  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       Backport from mainline:
+       2017-01-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR target/78945
+       * config/arm/exch_n.c (libat_exchange): Check __ARM_FEATURE_SIMD32.
+
 2016-06-03  Release Manager
 
        * GCC 5.4.0 released.
index 7ad73b73577ac5da34aeec119c6386094712026c..bc88ac9f9ac91cdfa672ee7eb93dbca72034dfa0 100644 (file)
@@ -29,7 +29,7 @@
 /* When using STREX to implement sub-word exchange, we can do much better
    than the compiler by using the APSR.GE and APSR.C flags.  */
 
-#if !DONE && HAVE_STREX && !HAVE_STREXBH && N == 2
+#if !DONE && __ARM_FEATURE_SIMD32 && HAVE_STREX && !HAVE_STREXBH && N == 2
 UTYPE
 SIZE(libat_exchange) (UTYPE *mptr, UTYPE newval, int smodel)
 {
@@ -79,7 +79,7 @@ SIZE(libat_exchange) (UTYPE *mptr, UTYPE newval, int smodel)
 #endif /* !HAVE_STREXBH && N == 2 */
 
 
-#if !DONE && HAVE_STREX && !HAVE_STREXBH && N == 1
+#if !DONE && __ARM_FEATURE_SIMD32 && HAVE_STREX && !HAVE_STREXBH && N == 1
 UTYPE
 SIZE(libat_exchange) (UTYPE *mptr, UTYPE newval, int smodel)
 {