Skip to content

Commit

Permalink
emscripten: Lower max_align_t from 16 to 8 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke authored and tgross35 committed Nov 14, 2024
1 parent 0df7c93 commit 99035d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2890,10 +2890,6 @@ fn test_emscripten(target: &str) {
ty if ty.starts_with("epoll") => true,
ty if ty.starts_with("signalfd") => true,

// FIXME: Lowered from 16 to 8 bytes in
// llvm/llvm-project@d1a96e9
"max_align_t" => true,

// FIXME: The size has been changed due to time64
"utimbuf" | "timeval" | "timespec" | "rusage" | "itimerval" | "sched_param"
| "stat" | "stat64" | "shmid_ds" | "msqid_ds" => true,
Expand Down
4 changes: 2 additions & 2 deletions src/unix/linux_like/emscripten/align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ macro_rules! expand_align {
}

#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[repr(align(8))]
pub struct max_align_t {
priv_: [f64; 4]
priv_: [f64; 3]
}

}
Expand Down

0 comments on commit 99035d7

Please sign in to comment.