Skip to content

Commit a41833a

Browse files
committed
Add back remaining config on arm_aeabi_alias
Intrinsics marked with `arm_aeabi_alias = ...` were having the rest of their attributes eaten. Add them back.
1 parent 91f8268 commit a41833a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/macros.rs

+3
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ macro_rules! intrinsics {
290290
$($rest:tt)*
291291
) => (
292292
#[cfg(target_arch = "arm")]
293+
$(#[$($attr)*])*
293294
pub extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
294295
$($body)*
295296
}
@@ -298,6 +299,7 @@ macro_rules! intrinsics {
298299
mod $name {
299300
#[no_mangle]
300301
#[cfg_attr(all(not(windows), not(target_vendor = "apple")), linkage = "weak")]
302+
$(#[$($attr)*])*
301303
extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
302304
super::$name($($argname),*)
303305
}
@@ -307,6 +309,7 @@ macro_rules! intrinsics {
307309
mod $alias {
308310
#[no_mangle]
309311
#[cfg_attr(all(not(windows), not(target_vendor="apple")), linkage = "weak")]
312+
$(#[$($attr)*])*
310313
extern "aapcs" fn $alias( $($argname: $ty),* ) $(-> $ret)? {
311314
super::$name($($argname),*)
312315
}

0 commit comments

Comments
 (0)