@@ -170,7 +170,7 @@ mod uw {
170
170
pub type _Unwind_Trace_Fn =
171
171
extern "C" fn ( ctx : * mut _Unwind_Context , arg : * mut c_void ) -> _Unwind_Reason_Code ;
172
172
173
- extern "C" {
173
+ unsafe extern "C" {
174
174
pub fn _Unwind_Backtrace (
175
175
trace : _Unwind_Trace_Fn ,
176
176
trace_argument : * mut c_void ,
@@ -188,7 +188,7 @@ mod uw {
188
188
not( all( target_os = "vita" , target_arch = "arm" ) ) ,
189
189
not( all( target_os = "nuttx" , target_arch = "arm" ) ) ,
190
190
) ) ] {
191
- extern "C" {
191
+ unsafe extern "C" {
192
192
pub fn _Unwind_GetIP( ctx: * mut _Unwind_Context) -> libc:: uintptr_t;
193
193
pub fn _Unwind_FindEnclosingFunction( pc: * mut c_void) -> * mut c_void;
194
194
@@ -208,7 +208,7 @@ mod uw {
208
208
// instead of relying on _Unwind_GetCFA.
209
209
#[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
210
210
pub unsafe fn get_sp( ctx: * mut _Unwind_Context) -> libc:: uintptr_t {
211
- extern "C" {
211
+ unsafe extern "C" {
212
212
pub fn _Unwind_GetGR( ctx: * mut _Unwind_Context, index: libc:: c_int) -> libc:: uintptr_t;
213
213
}
214
214
unsafe { _Unwind_GetGR( ctx, 15 ) }
@@ -248,7 +248,7 @@ mod uw {
248
248
}
249
249
250
250
type _Unwind_Word = libc:: c_uint;
251
- extern "C" {
251
+ unsafe extern "C" {
252
252
fn _Unwind_VRS_Get(
253
253
ctx: * mut _Unwind_Context,
254
254
klass: _Unwind_VRS_RegClass,
0 commit comments