Skip to content

Commit

Permalink
Codegen: re-enable repr(align(*))
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongkeunahn committed Sep 4, 2024
1 parent 08cefac commit 259747c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basm-std/src/platform/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pub extern "C" fn _basm_start() {
#[cfg(target_arch = "aarch64")]
#[no_mangle]
#[naked]
//#[repr(align(8))]
#[repr(align(8))]
pub unsafe extern "C" fn _basm_start() -> ! {
asm!(
"sub sp, sp, #96",
Expand Down Expand Up @@ -288,7 +288,7 @@ fn _start_rust(platform_data: usize) -> i32 {

#[no_mangle]
#[naked]
//#[repr(align(4))]
#[repr(align(4))]
#[cfg(all(target_arch = "x86_64", target_os = "windows"))]
pub unsafe extern "win64" fn __chkstk() -> ! {
asm!(
Expand Down

0 comments on commit 259747c

Please sign in to comment.