authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-28 18:59:26+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-28 23:31:11+01:00
log4a73b8cbb3cf1a7047da445790d39eef8474c652
treed2aedcac6d7d7c4610a6fe6ff3e0587c887d1d76
parent182cdf74bfb010936e167405cdb54c9f5a94e1a6

std.builtin: Add VaListXtensa.


1 files changed, 9 insertions(+), 0 deletions(-)

lib/std/builtin.zig+9
......@@ -892,6 +892,14 @@ pub const VaListX86_64 = extern struct {
892892 reg_save_area: *anyopaque,
893893};
894894
895/// This data structure is used by the Zig language code generation and
896/// therefore must be kept in sync with the compiler implementation.
897pub const VaListXtensa = extern struct {
898 __va_stk: *c_int,
899 __va_reg: *c_int,
900 __va_ndx: c_int,
901};
902
895903/// This data structure is used by the Zig language code generation and
896904/// therefore must be kept in sync with the compiler implementation.
897905pub const VaList = switch (builtin.cpu.arch) {
......@@ -925,6 +933,7 @@ pub const VaList = switch (builtin.cpu.arch) {
925933 .windows => @compileError("disabled due to miscompilations"), // *u8,
926934 else => VaListX86_64,
927935 },
936 .xtensa => VaListXtensa,
928937 else => @compileError("VaList not supported for this target yet"),
929938};
930939