Skip to content

Commit 9834c7f

Browse files
committed
Create an aapcs aliased function with mangled names
Currently the function with the aapcs name and ABI is only available when using unmangled names. Adjust `intrinsics!` to always create this function so it can be reached regardless of features.
1 parent 614ab5e commit 9834c7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler-builtins/src/macros.rs

+6
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ macro_rules! intrinsics {
331331
$($body)*
332332
}
333333

334+
#[cfg(target_arch = "arm")]
335+
$(#[$($attr)*])*
336+
pub extern "aapcs" fn $alias( $($argname: $ty),* ) $(-> $ret)? {
337+
$name($($argname),*)
338+
}
339+
334340
#[cfg(all(target_arch = "arm", not(feature = "mangled-names")))]
335341
mod $name {
336342
#[no_mangle]

0 commit comments

Comments
 (0)