mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
Patch panic_unwind to compile, but this is surely broken
This commit is contained in:
committed by
Brian Anderson
parent
cb3f5799f4
commit
86fd661bcb
@@ -133,6 +133,12 @@ fn rust_exception_class() -> uw::_Unwind_Exception_Class {
|
||||
#[cfg(target_arch = "s390x")]
|
||||
const UNWIND_DATA_REG: (i32, i32) = (6, 7); // R6, R7
|
||||
|
||||
// FIXME: This is completely and utterly wrong.
|
||||
// I copy'n'pasted the x86 thing just to see if asmjs-unknown-emscripten compiles at all
|
||||
// (the happy path)
|
||||
#[cfg(target_arch = "asmjs")]
|
||||
const UNWIND_DATA_REG: (i32, i32) = (0, 2); // EAX, EDX
|
||||
|
||||
// The following code is based on GCC's C and C++ personality routines. For reference, see:
|
||||
// https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/libsupc++/eh_personality.cc
|
||||
// https://github.com/gcc-mirror/gcc/blob/trunk/libgcc/unwind-c.c
|
||||
|
||||
Reference in New Issue
Block a user