mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
This target triple was weird on multiple levels: * The `ilp32` ABI is the soft float ABI. This is not the main ABI we want to support on RISC-V; rather, we want `ilp32d`. * `gnuilp32` is a bespoke tag that was introduced in Zig. The rest of the world just uses `gnu` for RISC-V target triples. * `gnu_ilp32` is already the name of an ILP32 ABI used on AArch64. `gnuilp32` is too easy to confuse with this. * We don't use this convention for `riscv64-linux-gnu`. * Supporting all RISC-V ABIs with this convention will result in combinatorial explosion; see #20690.
11 lines
266 B
C
Vendored
11 lines
266 B
C
Vendored
#ifndef _BITS_ENDIANNESS_H
|
|
#define _BITS_ENDIANNESS_H 1
|
|
|
|
#ifndef _BITS_ENDIAN_H
|
|
# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
|
|
#endif
|
|
|
|
/* RISC-V is little-endian. */
|
|
#define __BYTE_ORDER __LITTLE_ENDIAN
|
|
|
|
#endif /* bits/endianness.h */ |