From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2093) id 76C0E3857C4E; Mon, 10 Oct 2022 13:11:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76C0E3857C4E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665407506; bh=X/WtZ/S0oNlhRFXWyJt26P0rTnb4C7ajf5twR18/ZIU=; h=From:To:Subject:Date:From; b=DwF/RBsiKftBWus57WhJbUxXa+5u9c4c0LKKtP4U/GamHEtvsRUFY8SYYx3mAm6Ay ruYgU5P7O2BoZthHzQSTsQFtRKADCdi2sTgWvPdj2d4am57yxrmCXVApfwsYvNkucr VrlYXC24vq0s+UoLJ0qujGd5UPZr+A0PPXrD/Pfw= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Kito Cheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3200] RISC-V: Add riscv_vector.h wrapper in testsuite to prevent pull in stdint.h from C library X-Act-Checkin: gcc X-Git-Author: Kito Cheng X-Git-Refname: refs/heads/master X-Git-Oldrev: 99e9796ca1e9afcf820214353756a9a140d89be3 X-Git-Newrev: d0bbecb1c418b680505faa998fe420f0fd4bbfc1 Message-Id: <20221010131146.76C0E3857C4E@sourceware.org> Date: Mon, 10 Oct 2022 13:11:46 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d0bbecb1c418b680505faa998fe420f0fd4bbfc1 commit r13-3200-gd0bbecb1c418b680505faa998fe420f0fd4bbfc1 Author: Kito Cheng Date: Fri Oct 7 16:55:14 2022 +0800 RISC-V: Add riscv_vector.h wrapper in testsuite to prevent pull in stdint.h from C library For RISC-V linux/glibc toolchain will got header file not found when including stdint.h if multilib is not enabled, it because some header file will try to include gnu/stubs-.h from the system, however it only generated when multilib enabled. In order to prevent that, we introduce a wrapper for riscv_vector.h, include stdint-gcc.h rather than the default stdint.h. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/riscv_vector.h: New. Reported-by: Christoph Müllner Tested-by: Christoph Müllner Reviewed-by: Ju-Zhe Zhong Diff: --- gcc/testsuite/gcc.target/riscv/rvv/base/riscv_vector.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/riscv_vector.h b/gcc/testsuite/gcc.target/riscv/rvv/base/riscv_vector.h new file mode 100644 index 00000000000..fbb4858fc86 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/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 +#define _RISCV_VECTOR_WRAP_H + +#endif