Skip to content

Commit eb821a3

Browse files
kleisauketgross35
authored andcommitted
emscripten: Lower max_align_t from 16 to 8 bytes
See: llvm/llvm-project@d1a96e9. (backport <rust-lang#3962>) (cherry picked from commit 99035d7)
1 parent 51248a5 commit eb821a3

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
@@ -2945,10 +2945,6 @@ fn test_emscripten(target: &str) {
29452945
ty if ty.starts_with("epoll") => true,
29462946
ty if ty.starts_with("signalfd") => true,
29472947

2948-
// FIXME: Lowered from 16 to 8 bytes in
2949-
// llvm/llvm-project@d1a96e9
2950-
"max_align_t" => true,
2951-
29522948
// FIXME: The size has been changed due to time64
29532949
"utimbuf" | "timeval" | "timespec" | "rusage" | "itimerval" | "sched_param"
29542950
| "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)