[ARM] Error out of arm_neon.h if compiling for soft-float ABI
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Mar 2016 11:45:41 +0000 (11:45 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Mar 2016 11:45:41 +0000 (11:45 +0000)
* config/arm/arm_neon.h: Show error if using with soft-float ABI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234023 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm_neon.h

index a797dfa..dac4a19 100644 (file)
@@ -1,3 +1,7 @@
+2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * config/arm/arm_neon.h: Show error if using with soft-float ABI.
+
 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        PR target/62281
index 94bbef5..07503d7 100644 (file)
 #ifndef _GCC_ARM_NEON_H
 #define _GCC_ARM_NEON_H 1
 
+#ifndef __ARM_FP
+#error "NEON intrinsics not available with the soft-float ABI.  Please use -mfloat-abi=softp or -mfloat-abi=hard"
+#else
+
 #pragma GCC push_options
 #pragma GCC target ("fpu=neon")
 
@@ -14833,3 +14837,4 @@ vmull_high_p64 (poly64x2_t __a, poly64x2_t __b)
 #pragma GCC pop_options
 
 #endif
+#endif