mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
std.builtin: Add VaListXtensa.
This commit is contained in:
parent
182cdf74bf
commit
4a73b8cbb3
@ -892,6 +892,14 @@ pub const VaListX86_64 = extern struct {
|
|||||||
reg_save_area: *anyopaque,
|
reg_save_area: *anyopaque,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// This data structure is used by the Zig language code generation and
|
||||||
|
/// therefore must be kept in sync with the compiler implementation.
|
||||||
|
pub const VaListXtensa = extern struct {
|
||||||
|
__va_stk: *c_int,
|
||||||
|
__va_reg: *c_int,
|
||||||
|
__va_ndx: c_int,
|
||||||
|
};
|
||||||
|
|
||||||
/// This data structure is used by the Zig language code generation and
|
/// This data structure is used by the Zig language code generation and
|
||||||
/// therefore must be kept in sync with the compiler implementation.
|
/// therefore must be kept in sync with the compiler implementation.
|
||||||
pub const VaList = switch (builtin.cpu.arch) {
|
pub const VaList = switch (builtin.cpu.arch) {
|
||||||
@ -925,6 +933,7 @@ pub const VaList = switch (builtin.cpu.arch) {
|
|||||||
.windows => @compileError("disabled due to miscompilations"), // *u8,
|
.windows => @compileError("disabled due to miscompilations"), // *u8,
|
||||||
else => VaListX86_64,
|
else => VaListX86_64,
|
||||||
},
|
},
|
||||||
|
.xtensa => VaListXtensa,
|
||||||
else => @compileError("VaList not supported for this target yet"),
|
else => @compileError("VaList not supported for this target yet"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user