Commit 3b6e79ae by Andre Simoes Dias Vieira Committed by Andre Vieira

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  <andre.simoesdiasvieira@arm.com>

        * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE.
parent 53161358
2020-04-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
* config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE.
2020-04-03 Tamar Christina <tamar.christina@arm.com> 2020-04-03 Tamar Christina <tamar.christina@arm.com>
PR target/94396 PR target/94396
......
...@@ -24,11 +24,9 @@ ...@@ -24,11 +24,9 @@
#if __ARM_BIG_ENDIAN #if __ARM_BIG_ENDIAN
#error "MVE intrinsics are not supported in Big-Endian mode." #error "MVE intrinsics are not supported in Big-Endian mode."
#endif #elif !__ARM_FEATURE_MVE
#if !__ARM_FEATURE_MVE
#error "MVE feature not supported" #error "MVE feature not supported"
#endif #else
#include <stdint.h> #include <stdint.h>
#ifndef __cplusplus #ifndef __cplusplus
...@@ -27554,4 +27552,5 @@ extern void *__ARM_undef; ...@@ -27554,4 +27552,5 @@ extern void *__ARM_undef;
} }
#endif #endif
#endif /* __ARM_FEATURE_MVE */
#endif /* _GCC_ARM_MVE_H. */ #endif /* _GCC_ARM_MVE_H. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment