aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.cc
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-11-21 09:09:25 +0800
committerXi Ruoyao <xry111@xry111.site>2023-11-21 11:05:11 +0800
commit7bf1de918608e2d0b5a3ad0923040acb1819d9a5 (patch)
treee090c805efda3f247c794568433bbf2eb33e6308 /gcc/tree-vect-loop.cc
parent7e2a429ae8f938a94c69bcab96062c9f036b721e (diff)
downloadgcc-7bf1de918608e2d0b5a3ad0923040acb1819d9a5.zip
gcc-7bf1de918608e2d0b5a3ad0923040acb1819d9a5.tar.gz
gcc-7bf1de918608e2d0b5a3ad0923040acb1819d9a5.tar.bz2
LoongArch: Fix libgcc build failure when libc is not available
To use int64_t we included <stdint.h> in loongarch-def.h. Unfortunately, loongarch-def.h is also used by libgcc etc., causing a build failure when building a "stage1" cross compiler at which the target libc is not built yet. As int64_t is used for a C-compatible replacement of HOST_WIDE_INT, it's not directly or indirectly referred by the target libraries. So guard everything requiring stdint.h with #if then they'll not block target libraries. gcc/ChangeLog: * config/loongarch/loongarch-def.h (stdint.h): Guard with #if to exclude it for target libraries. (loongarch_isa_base_features): Likewise. (loongarch_isa): Likewise. (loongarch_abi): Likewise. (loongarch_target): Likewise. (loongarch_cpu_default_isa): Likewise.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions