diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2016-03-07 11:45:41 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2016-03-07 11:45:41 +0000 |
commit | 60add66bd20c31581de2dde11212dc4f9c25c7db (patch) | |
tree | 5747c279eda30f1bd0c31edfa6fc5ad591500426 | |
parent | 41604008c050f35dbc4d9280814843d46feb447e (diff) | |
download | gcc-60add66bd20c31581de2dde11212dc4f9c25c7db.zip gcc-60add66bd20c31581de2dde11212dc4f9c25c7db.tar.gz gcc-60add66bd20c31581de2dde11212dc4f9c25c7db.tar.bz2 |
[ARM] Error out of arm_neon.h if compiling for soft-float ABI
* config/arm/arm_neon.h: Show error if using with soft-float ABI.
From-SVN: r234023
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/arm/arm_neon.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a797dfa..dac4a19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/arm/arm_neon.h b/gcc/config/arm/arm_neon.h index 94bbef5..07503d7 100644 --- a/gcc/config/arm/arm_neon.h +++ b/gcc/config/arm/arm_neon.h @@ -27,6 +27,10 @@ #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 |