diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-28 18:59:26 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-28 23:31:11 +0100 |
| commit | 4a73b8cbb3cf1a7047da445790d39eef8474c652 (patch) | |
| tree | d2aedcac6d7d7c4610a6fe6ff3e0587c887d1d76 /lib/std/builtin.zig | |
| parent | 182cdf74bfb010936e167405cdb54c9f5a94e1a6 (diff) | |
| download | zig-4a73b8cbb3cf1a7047da445790d39eef8474c652.tar.gz zig-4a73b8cbb3cf1a7047da445790d39eef8474c652.zip | |
std.builtin: Add VaListXtensa.
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index ed18965e50..52fe2c5e23 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -894,6 +894,14 @@ pub const VaListX86_64 = extern struct { /// 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 +/// therefore must be kept in sync with the compiler implementation. pub const VaList = switch (builtin.cpu.arch) { .aarch64, .aarch64_be => switch (builtin.os.tag) { .windows => *u8, @@ -925,6 +933,7 @@ pub const VaList = switch (builtin.cpu.arch) { .windows => @compileError("disabled due to miscompilations"), // *u8, else => VaListX86_64, }, + .xtensa => VaListXtensa, else => @compileError("VaList not supported for this target yet"), }; |
