From d2ab7d3ea8ff80089c9f5d8a3db37de0000eb246 Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Tue, 27 Jan 2015 22:24:17 -0800 Subject: [PATCH] rt: allow unexported functions rust_panic is unexported, however the metadata exported will usually include it for attaching breakpoints. --- src/libstd/rt/unwind.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs index 18298f1c7f4..dd4d3bbc5fc 100644 --- a/src/libstd/rt/unwind.rs +++ b/src/libstd/rt/unwind.rs @@ -160,6 +160,7 @@ pub fn panicking() -> bool { // An uninlined, unmangled function upon which to slap yer breakpoints #[inline(never)] #[no_mangle] +#[allow(private_no_mangle_fns)] fn rust_panic(cause: Box) -> ! { rtdebug!("begin_unwind()"); @@ -237,6 +238,7 @@ pub mod eabi { #[lang="eh_personality"] #[no_mangle] // referenced from rust_try.ll + #[allow(private_no_mangle_fns)] extern fn rust_eh_personality( version: c_int, actions: uw::_Unwind_Action, @@ -252,6 +254,7 @@ pub mod eabi { } #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality_catch( _version: c_int, actions: uw::_Unwind_Action, @@ -290,6 +293,7 @@ pub mod eabi { #[lang="eh_personality"] #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality( version: c_int, actions: uw::_Unwind_Action, @@ -305,6 +309,7 @@ pub mod eabi { } #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality_catch( _version: c_int, actions: uw::_Unwind_Action, @@ -343,6 +348,7 @@ pub mod eabi { #[lang="eh_personality"] #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] extern "C" fn rust_eh_personality( state: uw::_Unwind_State, ue_header: *mut uw::_Unwind_Exception, @@ -355,6 +361,7 @@ pub mod eabi { } #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality_catch( state: uw::_Unwind_State, _ue_header: *mut uw::_Unwind_Exception, @@ -432,6 +439,7 @@ pub mod eabi { #[lang="eh_personality"] #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] extern "C" fn rust_eh_personality( exceptionRecord: *mut EXCEPTION_RECORD, establisherFrame: *mut c_void, @@ -446,6 +454,7 @@ pub mod eabi { } #[no_mangle] // referenced from rust_try.ll + #[allow(unexported_no_mangle)] pub extern "C" fn rust_eh_personality_catch( exceptionRecord: *mut EXCEPTION_RECORD, establisherFrame: *mut c_void,