Skip to content

Commit

Permalink
auto merge of #11947 : alexcrichton/rust/osx-unwind, r=brson
Browse files Browse the repository at this point in the history
On OSX 32-bit, the private fields are 5 words long, not 2. I found this
segfaulting before this change, and after this change it no longer segfaulted.
  • Loading branch information
bors committed Jan 31, 2014
2 parents b7f673a + 51b9000 commit f910a97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libstd/rt/unwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ mod libunwind {

pub type _Unwind_Word = uintptr_t;

#[cfg(not(target_arch = "arm"))]
#[cfg(target_arch = "x86")]
pub static unwinder_private_data_size: int = 5;

#[cfg(target_arch = "x86_64")]
pub static unwinder_private_data_size: int = 2;

#[cfg(target_arch = "arm")]
Expand Down

0 comments on commit f910a97

Please sign in to comment.