aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>2020-04-03 14:26:26 +0100
committerAndre Vieira <andre.simoesdiasvieira@arm.com>2020-04-03 15:59:17 +0100
commit3b6e79ae0c39f8819634279366caebd15f58cdb3 (patch)
tree2dde07dcee3e2bd3f88c3a6bb7b11e7d48b3545b /gcc
parent53161358180fdc2c2c21c8f46bbdd339a1fbb8ae (diff)
downloadgcc-3b6e79ae0c39f8819634279366caebd15f58cdb3.zip
gcc-3b6e79ae0c39f8819634279366caebd15f58cdb3.tar.gz
gcc-3b6e79ae0c39f8819634279366caebd15f58cdb3.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/arm/arm_mve.h7
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2325476..0847c48 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+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>
PR target/94396
diff --git a/gcc/config/arm/arm_mve.h b/gcc/config/arm/arm_mve.h
index 47a6268..1c2ee9b 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 <stdint.h>
#ifndef __cplusplus
@@ -27554,4 +27552,5 @@ extern void *__ARM_undef;
}
#endif
+#endif /* __ARM_FEATURE_MVE */
#endif /* _GCC_ARM_MVE_H. */