Skip to content

Commit

Permalink
Fix compile errors for ARM.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Aug 3, 2015
1 parent e493027 commit 96d1db2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/libstd/rt/libunwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/libstd/rt/unwind/gcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ pub mod eabi {
}
else { // cleanup phase
unsafe {
__gcc_personality_sj0(_version, actions, _exception_class, _ue_header,
_context)
__gcc_personality_sj0(version, actions, exception_class, ue_header,
context)
}
}
}
Expand Down

0 comments on commit 96d1db2

Please sign in to comment.