about summary refs log tree commit diff
path: root/src/libstd/rt/unwind.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-29 17:32:50 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-30 15:52:23 -0700
commitf4fa7c8a07a96cc9d0aae0bfc6515fb747f25341 (patch)
tree6460c18d1af201ac4e5f620be2fb1c23da5320a2 /src/libstd/rt/unwind.rs
parente5e865b8044cef76bd33ba268a8cdea8a401c96c (diff)
Register new snapshots
Diffstat (limited to 'src/libstd/rt/unwind.rs')
-rw-r--r--src/libstd/rt/unwind.rs41
1 files changed, 1 insertions, 40 deletions
diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs
index f34dcaaa427..dc2646102d2 100644
--- a/src/libstd/rt/unwind.rs
+++ b/src/libstd/rt/unwind.rs
@@ -213,7 +213,6 @@ pub mod eabi {
     }
 
     #[lang="eh_personality"]
-    #[cfg(not(stage0))]
     extern fn eh_personality(
         version: c_int,
         actions: uw::_Unwind_Action,
@@ -227,22 +226,6 @@ pub mod eabi {
                                  context)
         }
     }
-    #[lang="eh_personality"]
-    #[no_mangle] // so we can reference it by name from middle/trans/base.rs
-    #[cfg(stage0)]
-    pub extern "C" fn rust_eh_personality(
-        version: c_int,
-        actions: uw::_Unwind_Action,
-        exception_class: uw::_Unwind_Exception_Class,
-        ue_header: *uw::_Unwind_Exception,
-        context: *uw::_Unwind_Context
-    ) -> uw::_Unwind_Reason_Code
-    {
-        unsafe {
-            __gcc_personality_v0(version, actions, exception_class, ue_header,
-                                 context)
-        }
-    }
 
     #[no_mangle] // referenced from rust_try.ll
     pub extern "C" fn rust_eh_personality_catch(
@@ -281,7 +264,6 @@ pub mod eabi {
     }
 
     #[lang="eh_personality"]
-    #[cfg(not(stage0))]
     extern "C" fn eh_personality(
         state: uw::_Unwind_State,
         ue_header: *uw::_Unwind_Exception,
@@ -293,20 +275,6 @@ pub mod eabi {
         }
     }
 
-    #[lang="eh_personality"]
-    #[no_mangle] // so we can reference it by name from middle/trans/base.rs
-    #[cfg(stage0)]
-    pub extern "C" fn rust_eh_personality(
-        state: uw::_Unwind_State,
-        ue_header: *uw::_Unwind_Exception,
-        context: *uw::_Unwind_Context
-    ) -> uw::_Unwind_Reason_Code
-    {
-        unsafe {
-            __gcc_personality_v0(state, ue_header, context)
-        }
-    }
-
     #[no_mangle] // referenced from rust_try.ll
     pub extern "C" fn rust_eh_personality_catch(
         state: uw::_Unwind_State,
@@ -327,20 +295,13 @@ pub mod eabi {
 }
 
 // Entry point of failure from the libcore crate
-#[cfg(not(test), not(stage0))]
+#[cfg(not(test))]
 #[lang = "begin_unwind"]
 pub extern fn rust_begin_unwind(msg: &fmt::Arguments,
                                 file: &'static str, line: uint) -> ! {
     begin_unwind_fmt(msg, file, line)
 }
 
-#[no_mangle]
-#[cfg(not(test), stage0)]
-pub extern fn rust_begin_unwind(msg: &fmt::Arguments,
-                                file: &'static str, line: uint) -> ! {
-    begin_unwind_fmt(msg, file, line)
-}
-
 /// The entry point for unwinding with a formatted message.
 ///
 /// This is designed to reduce the amount of code required at the call