zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 47e208e554776aa4f5f3fe74d6f8d995efa3aaad (tree)
parent a85cb728775375825afe4ebd62c60ae0b361d1e9
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Mon, 15 Jun 2026 14:34:09 +0200

std.lang: fix accidentally swapped VaList layouts for hexagon and s390x

contributes to https://codeberg.org/ziglang/zig/issues/35523

Diffstat:
Mlib/std/lang.zig | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/std/lang.zig b/lib/std/lang.zig @@ -1000,10 +1000,9 @@ pub const VaListArm = 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 VaListHexagon = extern struct { - __gpr: c_long, - __fpr: c_long, - __overflow_arg_area: *anyopaque, - __reg_save_area: *anyopaque, + __current_saved_reg_area_pointer: *anyopaque, + __saved_reg_area_end_pointer: *anyopaque, + __overflow_area_pointer: *anyopaque, }; /// This data structure is used by the Zig language code generation and @@ -1019,9 +1018,10 @@ pub const VaListPowerPc = 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 VaListS390x = extern struct { - __current_saved_reg_area_pointer: *anyopaque, - __saved_reg_area_end_pointer: *anyopaque, - __overflow_area_pointer: *anyopaque, + __gpr: c_long, + __fpr: c_long, + __overflow_arg_area: *anyopaque, + __reg_save_area: *anyopaque, }; /// This data structure is used by the Zig language code generation and