From 47e208e554776aa4f5f3fe74d6f8d995efa3aaad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 15 Jun 2026 14:34:09 +0200 Subject: [PATCH] std.lang: fix accidentally swapped VaList layouts for hexagon and s390x contributes to https://codeberg.org/ziglang/zig/issues/35523 --- lib/std/lang.zig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/std/lang.zig b/lib/std/lang.zig index 10ed06a85f2493e1acba401f6357855a3325bd39..7f04a24804bc5cafb02fc6d83c8fd7d3fedaeac8 100644 --- 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 -- 2.54.0