Skip to content

Commit 99035d7

Browse files
kleisauketgross35
authored andcommitted
emscripten: Lower max_align_t from 16 to 8 bytes
See: llvm/llvm-project@d1a96e9.
1 parent 0df7c93 commit 99035d7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

libc-test/build.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,10 +2890,6 @@ fn test_emscripten(target: &str) {
28902890
ty if ty.starts_with("epoll") => true,
28912891
ty if ty.starts_with("signalfd") => true,
28922892

2893-
// FIXME: Lowered from 16 to 8 bytes in
2894-
// llvm/llvm-project@d1a96e9
2895-
"max_align_t" => true,
2896-
28972893
// FIXME: The size has been changed due to time64
28982894
"utimbuf" | "timeval" | "timespec" | "rusage" | "itimerval" | "sched_param"
28992895
| "stat" | "stat64" | "shmid_ds" | "msqid_ds" => true,

src/unix/linux_like/emscripten/align.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ macro_rules! expand_align {
3838
}
3939

4040
#[allow(missing_debug_implementations)]
41-
#[repr(align(16))]
41+
#[repr(align(8))]
4242
pub struct max_align_t {
43-
priv_: [f64; 4]
43+
priv_: [f64; 3]
4444
}
4545

4646
}

0 commit comments

Comments
 (0)