Skip to content

Commit b9769d1

Browse files
committed
---
yaml --- r: 149976 b: refs/heads/try2 c: 8e5ca4b h: refs/heads/master v: v3
1 parent fda69da commit b9769d1

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 770b6e2fc2f8749466487e4c2ae031b8ceecae04
8+
refs/heads/try2: 8e5ca4b793e928b5a7545f6d1010b7663a9d30ae
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/rt/libunwind.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,26 @@ extern "C" {
9898
pub fn _Unwind_Backtrace(trace: _Unwind_Trace_Fn,
9999
trace_argument: *libc::c_void)
100100
-> _Unwind_Reason_Code;
101-
#[cfg(not(target_os = "android"))]
101+
#[cfg(stage0, not(target_os = "android"))]
102102
pub fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t;
103-
#[cfg(not(target_os = "android"))]
103+
#[cfg(stage0, not(target_os = "android"))]
104+
pub fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void;
105+
106+
#[cfg(not(stage0),
107+
not(target_os = "android"),
108+
not(target_os = "linux", target_arch = "arm"))]
109+
pub fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t;
110+
#[cfg(not(stage0),
111+
not(target_os = "android"),
112+
not(target_os = "linux", target_arch = "arm"))]
104113
pub fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void;
105114
}
106115

107116
// On android, the function _Unwind_GetIP is a macro, and this is the expansion
108117
// of the macro. This is all copy/pasted directly from the header file with the
109118
// definition of _Unwind_GetIP.
110119
#[cfg(target_os = "android")]
120+
#[cfg(target_os = "linux", target_os = "arm")]
111121
pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
112122
#[repr(C)]
113123
enum _Unwind_VRS_Result {
@@ -151,6 +161,7 @@ pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
151161

152162
// This function also doesn't exist on android, so make it a no-op
153163
#[cfg(target_os = "android")]
164+
#[cfg(target_os = "linux", target_os = "arm")]
154165
pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void{
155166
pc
156167
}

0 commit comments

Comments
 (0)