VxWorks' libc doesn't define __STDC_LIMIT_MACROS when compiling C++98,
and then GCC's stdint.h doesn't define INT<N>_MIN, that a number of
acle asm testcases expect. If the macro is not defined, define the
macro in the header first included by all the affected tests, namely,
{div_s{32,64},mul_s{16,32,64,8}}.c.
Regstrapped on x86_64-linux-gnu. Also tested with ppc-vx7r2,
ppc64-vx7r2, arm-vx7r2, and aarch64-vx7r2. Ok to install?
for gcc/testsuite/ChangeLog
* gcc.target/aarch64/sve/acle/asm/test_sve_acle.h
(__STDC_LIMIT_MACROS): Define.
---
.../aarch64/sve/acle/asm/test_sve_acle.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/test_sve_acle.h
b/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/test_sve_acle.h
index 8d4ed537c871d..aeb58ead0dd04 100644
--- a/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/test_sve_acle.h
+++ b/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/test_sve_acle.h
@@ -1,6 +1,13 @@
#ifndef TEST_SVE_ACLE_H
#define TEST_SVE_ACLE_H 1
+/* When compiling for e.g. C++98, we won't get the INt*_MIN macros that some
+ tests want without defining this macro. */
+
+#ifndef __STDC_LIMIT_MACROS
+# define __STDC_LIMIT_MACROS 1
+#endif
+
#include <arm_neon_sve_bridge.h>
#if defined (TEST_OVERLOADS)
--
Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/
Free Software Activist FSFLA co-founder GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!