Skip to content

Commit 96d1db2

Browse files
committed
Fix compile errors for ARM.
1 parent e493027 commit 96d1db2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/libstd/rt/libunwind.rs

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub enum _Unwind_Action {
3636

3737
#[cfg(target_arch = "arm")]
3838
#[repr(C)]
39+
#[derive(Copy, Clone)]
3940
pub enum _Unwind_State {
4041
_US_VIRTUAL_UNWIND_FRAME = 0,
4142
_US_UNWIND_FRAME_STARTING = 1,
@@ -46,6 +47,7 @@ pub enum _Unwind_State {
4647
}
4748

4849
#[repr(C)]
50+
#[derive(Copy, Clone)]
4951
pub enum _Unwind_Reason_Code {
5052
_URC_NO_REASON = 0,
5153
_URC_FOREIGN_EXCEPTION_CAUGHT = 1,

src/libstd/rt/unwind/gcc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ pub mod eabi {
179179
}
180180
else { // cleanup phase
181181
unsafe {
182-
__gcc_personality_sj0(_version, actions, _exception_class, _ue_header,
183-
_context)
182+
__gcc_personality_sj0(version, actions, exception_class, ue_header,
183+
context)
184184
}
185185
}
186186
}

0 commit comments

Comments
 (0)