Skip to content

Commit

Permalink
Fix the definition of mc_fpstate on FreeBSD x86
Browse files Browse the repository at this point in the history
The definition added in b811b70 was
technically wrong even though the type size was correct.  It was
probably defined this way because earlier versions of Rust had
difficulty with fixed-size arrays of size greater than 32.

This change is necessary for CI to pass on x86 FreeBSD.

https://github.com/freebsd/freebsd-src/blob/main/sys/x86/include/ucontext.h

(backport <rust-lang#3948>)
(cherry picked from commit ad2d864)
  • Loading branch information
asomers authored and tgross35 committed Nov 7, 2024
1 parent 5204c80 commit fdbc7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/bsd/freebsdlike/freebsd/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ s_no_extra_traits! {
pub mc_fpformat: ::c_int,
pub mc_ownedfp: ::c_int,
pub mc_flags: register_t,
pub mc_fpstate: [[::c_int; 32]; 4],
pub mc_fpstate: [::c_int; 128],
pub mc_fsbase: register_t,
pub mc_gsbase: register_t,
pub mc_xfpustate: register_t,
Expand Down

0 comments on commit fdbc7a3

Please sign in to comment.