Mark Rousskov
31dcdc9e13
Drop cfg(bootstrap) code
2020-01-31 12:31:09 -05:00
Tianjiao Huang
d336e593cc
Fix invalid link to C++ Exception Handling ABI documentation
2020-01-19 12:16:29 -08:00
Amanieu d'Antras
25519e5290
Fix destructor in emcc.rs
2020-01-13 12:54:16 +00:00
Amanieu d'Antras
4f163afed6
Fix destructor return value in emcc.rs
2020-01-13 00:39:41 +00:00
Amanieu d'Antras
3a025760be
Abort if C++ tries to swallow a Rust panic
2020-01-11 10:18:44 +00:00
Amanieu d'Antras
757ed07f37
Apply review feedback
2020-01-11 10:18:44 +00:00
Amanieu d'Antras
838e3874fc
Explain the panic! in exception_copy
2020-01-11 10:18:44 +00:00
Amanieu d'Antras
c15ad84519
Fix a memory leak in SEH unwinding if a Rust panic is caught by C++ and discarded
2020-01-11 10:18:44 +00:00
Amanieu d'Antras
46f52260d8
Simplify exception cleanup for libunwind-style unwinding
2020-01-11 10:18:44 +00:00
Amanieu d'Antras
10720b418e
Fix a memory leak in emcc if a Rust panic is caught by C++ and discarded
2020-01-11 10:18:44 +00:00
Lzu Tao
cd9a73d2ea
make use of pointer::is_null
2020-01-10 12:52:00 +00:00
bors
ef92009c1d
Auto merge of #66899 - msizanoen1:riscv-std, r=alexcrichton
...
Standard library support for riscv64gc-unknown-linux-gnu
Add std support for RISC-V 64-bit GNU/Linux and update libc for RISC-V support.
r? @alexcrichton
2020-01-06 19:07:42 +00:00
bors
766fba3fdc
Auto merge of #67779 - Amanieu:ehabi_fix, r=Mark-Simulacrum
...
Update the barrier cache during ARM EHABI unwinding
Fixes #67242
r? @alexcrichton
2020-01-02 07:04:20 +00:00
Amanieu d'Antras
057ad39ea8
Update the barrier cache during ARM EHABI unwinding
2020-01-01 17:20:16 +01:00
msizanoen1
b830b673e7
Add support for RISC-V 64-bit GNU/Linux
2020-01-01 09:52:18 +07:00
Lzu Tao
3a2ef17194
tidy: change msdn links to newer locations
...
see accouncement at https://docs.microsoft.com/welcome-to-docs
2019-12-25 15:35:54 +00:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Ralf Jung
02b66a1901
libunwind_panic: adjust miri panic hack
2019-11-30 10:13:25 +01:00
Ralf Jung
56203be06f
Rollup merge of #66766 - RalfJung:panic-comments, r=SimonSapin
...
Panic machinery comments and tweaks
This is mostly more comments, but I also renamed some things:
* `BoxMeUp::box_me_up` is not terribly descriptive, and since this is a "take"-style method (the argument is `&mut self` but the return type is fully owned, even though you can't tell from the type) I chose a name involving "take".
* `continue_panic_fmt` was very confusing as it was entirely unclear what was being continued -- for some time I thought "continue" might be the same as "resume" for a panic, but that's something entirely different. So I renamed this to `begin_panic_handler`, matching the `begin_panic*` theme of the other entry points.
r? @Dylan-DPC @SimonSapin
2019-11-29 22:57:33 +01:00
Brian Wignall
16fabd8efd
Fix spelling typos
2019-11-26 22:19:54 -05:00
Ralf Jung
08f779cb4b
better comment and rename BoxMeUp::box_me_up to take_box
2019-11-25 12:16:08 +01:00
Ralf Jung
e8ff4656fc
avoid linking errors
2019-11-16 09:37:45 +01:00
Ralf Jung
52d7246a93
miri panic_unwind: fix hack for SEH platforms
2019-11-16 09:29:26 +01:00
Ralf Jung
065e1b8d8a
more comment
2019-11-15 15:57:01 +01:00
Ralf Jung
b6d93d9167
libpanic_unwind for Miri: make sure we have the SEH lang items when needed
2019-11-15 12:54:08 +01:00
Robin Kruppe
a1f67ad949
Revert "Auto merge of #65134 - davidtwco:issue-19834-improper-ctypes-in-extern-C-fn, r=rkruppe"
...
This reverts commit 3f0e16473d , reversing
changes made to 61a551b493 .
2019-11-13 17:00:47 +01:00
bors
0f12bad718
Auto merge of #66156 - Mark-Simulacrum:stage0-step, r=pietroalbini
...
Stage0 step
r? @pietroalbini
2019-11-13 00:42:19 +00:00
Mark Rousskov
994d83666d
Remove no longer needed mutability
2019-11-12 16:37:22 -05:00
Mark Rousskov
997feacddd
Snap cfgs
2019-11-12 16:36:57 -05:00
Aaron Hill
4ecb80d5d8
Remove trampoline, pass ret and unwind when handling intrinsics
2019-11-11 15:14:37 -05:00
Aaron Hill
607339f66a
Fix tidy
2019-11-11 15:14:37 -05:00
Aaron Hill
23900770ab
Move to miri.rs and re-export it
2019-11-11 15:14:37 -05:00
Aaron Hill
d5c0acac4d
Add comment
2019-11-11 15:14:35 -05:00
Aaron Hill
b06c83c200
Add miri trampoline, fix handling of intrinsic return
2019-11-11 15:14:35 -05:00
Aaron Hill
5553476d49
Use proper intrinsic type
2019-11-11 15:14:35 -05:00
Aaron Hill
848e1d827e
More work on miri_start_panic
2019-11-11 15:14:35 -05:00
Aaron Hill
fe88fc03c5
Fix up intrinsic implementation
2019-11-11 15:14:34 -05:00
Aaron Hill
caf3cc1fc8
Add explicit Miri support to libpanic_unwind
2019-11-11 15:14:34 -05:00
David Wood
a515258b35
improper_ctypes: extern "C" fns
2019-11-05 12:44:02 +00:00
Amanieu d'Antras
76660fde81
Make Emscripten unwinding use a valid type_info
...
This allows catch_panic to ignore C++ exceptions.
2019-11-03 14:04:15 +00:00
Amanieu d'Antras
ad61c88e72
Make SEH exceptions use a rust_panic type instead of unsigned __int64*
2019-11-03 14:03:21 +00:00
Amanieu d'Antras
5f1a0afd22
Allow foreign exceptions to unwind through Rust code
2019-11-03 14:03:21 +00:00
Stefan Lankes
d349e32fc7
Merge branch 'master' into rusty-hermit, resolve conflicts
2019-10-25 09:09:55 +02:00
Mateusz Mikuła
95c06a2970
Apply clippy::needless_return suggestions
2019-10-22 19:23:10 +02:00
Stefan Lankes
c1e440a90f
redesign of the interface to the unikernel HermitCore
...
- the old interface between HermitCore and the Rust Standard Library
based on a small C library (newlib)
- remove this interface and call directly the unikernel
- remove the dependency to the HermitCore linker
- use rust-lld as linker
2019-10-06 15:26:14 +00:00
Vadim Petrochenkov
7d511cca5c
libpanic_unwind: Unconfigure tests during normal build
2019-08-02 01:59:01 +03:00
Vadim Petrochenkov
434152157f
Remove lint annotations in specific crates that are already enforced by rustbuild
...
Remove some random unnecessary lint `allow`s
2019-07-28 18:46:24 +03:00
Brian Cain
4b339688b5
add support for hexagon-unknown-linux-musl
2019-07-22 09:44:58 -05:00
Lzu Tao
7d69d4ced2
Make use of ptr::null(_mut) instead of casting zero
2019-06-17 10:52:46 +00:00
Alex Crichton
8eb7f36a3b
std: Remove internal definitions of cfg_if! macro
...
This is duplicated in a few locations throughout the sysroot to work
around issues with not exporting a macro in libstd but still wanting it
available to sysroot crates to define blocks. Nowadays though we can
simply depend on the `cfg-if` crate on crates.io, allowing us to use it
from there!
2019-06-10 10:58:44 -07:00