]> git.lizzy.rs Git - rust.git/commitdiff
Fix compile errors for ARM.
authorVadim Chugunov <vadimcn@gmail.com>
Mon, 3 Aug 2015 04:15:01 +0000 (21:15 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Mon, 3 Aug 2015 04:15:01 +0000 (21:15 -0700)
src/libstd/rt/libunwind.rs
src/libstd/rt/unwind/gcc.rs

index d99b31c9f2b4318ded1c96f695b7bae2d088d7b9..fde612014e9921f3b3f32b807d172b76894ca12d 100644 (file)
@@ -36,6 +36,7 @@ pub enum _Unwind_Action {
 
 #[cfg(target_arch = "arm")]
 #[repr(C)]
+#[derive(Copy, Clone)]
 pub enum _Unwind_State {
     _US_VIRTUAL_UNWIND_FRAME = 0,
     _US_UNWIND_FRAME_STARTING = 1,
@@ -46,6 +47,7 @@ pub enum _Unwind_State {
 }
 
 #[repr(C)]
+#[derive(Copy, Clone)]
 pub enum _Unwind_Reason_Code {
     _URC_NO_REASON = 0,
     _URC_FOREIGN_EXCEPTION_CAUGHT = 1,
index eddc0e118ead45968b3e1a1829bf27a20f062376..55deb048b7ee538db2f0acf941a75791e447d1a2 100644 (file)
@@ -179,8 +179,8 @@ fn __gcc_personality_sj0(version: c_int,
         }
         else { // cleanup phase
             unsafe {
-                __gcc_personality_sj0(_version, actions, _exception_class, _ue_header,
-                                      _context)
+                __gcc_personality_sj0(version, actions, exception_class, ue_header,
+                                      context)
             }
         }
     }