aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemin.han <demin.han@starfivetech.com>2023-12-13 19:12:03 +0800
committerPan Li <pan2.li@intel.com>2023-12-13 19:52:23 +0800
commit90be333ad515b6126ce6dfe37aff6eb6b442b4ed (patch)
tree6fa4589c5ec3bc7da0561986e47644aac1c54ee3
parentf6d787c231905063dc3b55ce7028e348b74719be (diff)
downloadgcc-90be333ad515b6126ce6dfe37aff6eb6b442b4ed.zip
gcc-90be333ad515b6126ce6dfe37aff6eb6b442b4ed.tar.gz
gcc-90be333ad515b6126ce6dfe37aff6eb6b442b4ed.tar.bz2
RISC-V: Fix dynamic lmul tests depended on abi
Some toolchain configs would report: fatal error: gnu/stubs-ilp32.h: No such file or directory Fix method suggested by Juzhe-Zhong gcc/testsuite/ChangeLog: * gcc.dg/vect/costmodel/riscv/rvv/riscv_vector.h: New file. Signed-off-by: demin.han <demin.han@starfivetech.com> Signed-off-by: demin.han <demin.han@starfivetech.com>
-rw-r--r--gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/riscv_vector.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/riscv_vector.h b/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/riscv_vector.h
new file mode 100644
index 0000000..fbb4858f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/riscv_vector.h
@@ -0,0 +1,11 @@
+/* Wrapper of riscv_vector.h, prevent riscv_vector.h including stdint.h from
+ C library, that might cause problem on testing RV32 related testcase when
+ we disable multilib. */
+#ifndef _RISCV_VECTOR_WRAP_H
+
+#define _GCC_WRAP_STDINT_H
+#include "stdint-gcc.h"
+#include_next <riscv_vector.h>
+#define _RISCV_VECTOR_WRAP_H
+
+#endif