From: Andre Simoes Dias Vieira Date: Fri, 3 Apr 2020 13:26:26 +0000 (+0100) Subject: arm: Do not process rest of MVE header file after unsupported error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b6e79ae0c39f8819634279366caebd15f58cdb3;p=gcc.git arm: Do not process rest of MVE header file after unsupported error This patch makes sure the rest of the header file is not parsed if MVE is not supported. The user should not be including this file if MVE is not supported, nevertheless making sure it doesn't parse the rest of the header file will save the user from a huge error output that would be rather useless. gcc/ChangeLog: 2020-04-03 Andre Vieira * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2325476e60c..0847c4814ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2020-04-03 Andre Vieira + + * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE. + 2020-04-03 Tamar Christina PR target/94396 diff --git a/gcc/config/arm/arm_mve.h b/gcc/config/arm/arm_mve.h index 47a6268e080..1c2ee9bf48d 100644 --- a/gcc/config/arm/arm_mve.h +++ b/gcc/config/arm/arm_mve.h @@ -24,11 +24,9 @@ #if __ARM_BIG_ENDIAN #error "MVE intrinsics are not supported in Big-Endian mode." -#endif - -#if !__ARM_FEATURE_MVE +#elif !__ARM_FEATURE_MVE #error "MVE feature not supported" -#endif +#else #include #ifndef __cplusplus @@ -27554,4 +27552,5 @@ extern void *__ARM_undef; } #endif +#endif /* __ARM_FEATURE_MVE */ #endif /* _GCC_ARM_MVE_H. */