| ... | @@ -844,6 +844,12 @@ pub const VaListAarch64 = extern struct { | ... | @@ -844,6 +844,12 @@ pub const VaListAarch64 = extern struct { |
| 844 | __vr_offs: c_int, | 844 | __vr_offs: c_int, |
| 845 | }; | 845 | }; |
| 846 | | 846 | |
| | 847 | /// This data structure is used by the Zig language code generation and |
| | 848 | /// therefore must be kept in sync with the compiler implementation. |
| | 849 | pub const VaListArm = extern struct { |
| | 850 | __ap: *anyopaque, |
| | 851 | }; |
| | 852 | |
| 847 | /// This data structure is used by the Zig language code generation and | 853 | /// This data structure is used by the Zig language code generation and |
| 848 | /// therefore must be kept in sync with the compiler implementation. | 854 | /// therefore must be kept in sync with the compiler implementation. |
| 849 | pub const VaListHexagon = extern struct { | 855 | pub const VaListHexagon = extern struct { |
| ... | @@ -899,10 +905,7 @@ pub const VaList = switch (builtin.cpu.arch) { | ... | @@ -899,10 +905,7 @@ pub const VaList = switch (builtin.cpu.arch) { |
| 899 | .stage2_llvm => @compileError("disabled due to miscompilations"), | 905 | .stage2_llvm => @compileError("disabled due to miscompilations"), |
| 900 | }, | 906 | }, |
| 901 | }, | 907 | }, |
| 902 | .arm, .armeb, .thumb, .thumbeb => switch (builtin.os.tag) { | 908 | .arm, .armeb, .thumb, .thumbeb => VaListArm, |
| 903 | .ios, .macos, .tvos, .watchos, .visionos => *u8, | | |
| 904 | else => *anyopaque, | | |
| 905 | }, | | |
| 906 | .amdgcn => *u8, | 909 | .amdgcn => *u8, |
| 907 | .avr => *anyopaque, | 910 | .avr => *anyopaque, |
| 908 | .bpfel, .bpfeb => *anyopaque, | 911 | .bpfel, .bpfeb => *anyopaque, |