diff options
| author | bors <bors@rust-lang.org> | 2014-03-15 17:51:35 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-15 17:51:35 -0700 |
| commit | de78d7f56c0992e6f2cf1ec02e82d8efa2ffbac8 (patch) | |
| tree | c0f534e13782007ba54a1f4fc27a8ee112f87efd /src | |
| parent | 4444f49f630e4281ddc2f2394bed31614bb02355 (diff) | |
| parent | 15b962a9b9ee1cb434bc4a35dea84f25ffe7b5b7 (diff) | |
| download | rust-de78d7f56c0992e6f2cf1ec02e82d8efa2ffbac8.tar.gz rust-de78d7f56c0992e6f2cf1ec02e82d8efa2ffbac8.zip | |
auto merge of #12922 : luqmana/rust/fix-arm, r=alexcrichton
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/rt/libunwind.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/rt/libunwind.rs b/src/libstd/rt/libunwind.rs index ac34277dcbd..2528a22be9a 100644 --- a/src/libstd/rt/libunwind.rs +++ b/src/libstd/rt/libunwind.rs @@ -120,7 +120,7 @@ extern "C" { // of the macro. This is all copy/pasted directly from the header file with the // definition of _Unwind_GetIP. #[cfg(target_os = "android")] -#[cfg(target_os = "linux", target_os = "arm")] +#[cfg(target_os = "linux", target_arch = "arm")] pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t { #[repr(C)] enum _Unwind_VRS_Result { @@ -162,9 +162,9 @@ pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t { (val & !1) as libc::uintptr_t } -// This function also doesn't exist on android, so make it a no-op +// This function also doesn't exist on android or arm/linux, so make it a no-op #[cfg(target_os = "android")] -#[cfg(target_os = "linux", target_os = "arm")] -pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void{ +#[cfg(target_os = "linux", target_arch = "arm")] +pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void { pc } |
