From: ktkachov Date: Mon, 7 Mar 2016 11:45:41 +0000 (+0000) Subject: [ARM] Error out of arm_neon.h if compiling for soft-float ABI X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5b33ba6aa4fc6d3326f6063f6235c9bad7ef1af;p=thirdparty%2Fgcc.git [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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234023 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a797dfa0fd43..dac4a193e687 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-03-07 Kyrylo Tkachov + + * config/arm/arm_neon.h: Show error if using with soft-float ABI. + 2016-03-07 Rainer Orth PR target/62281 diff --git a/gcc/config/arm/arm_neon.h b/gcc/config/arm/arm_neon.h index 94bbef56f752..07503d7aa353 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