rust/src/test/compile-fail
Sam Elliott cda994633e Add Option to Force Unwind Tables
When panic != unwind, `nounwind` is added to all functions for a target.
This can cause issues when a panic happens with RUST_BACKTRACE=1, as
there needs to be a way to reconstruct the backtrace. There are three
possible sources of this information: forcing frame pointers (for which
an option exists already), debug info (for which an option exists), or
unwind tables.

Especially for embedded devices, forcing frame pointers can have code
size overheads (RISC-V sees ~10% overheads, ARM sees ~2-3% overheads).
In code, it can be the case that debug info is not kept, so it is useful
to provide this third option, unwind tables, that users can use to
reconstruct the call stack. Reconstructing this stack is harder than
with frame pointers, but it is still possible.

This commit adds a compiler option which allows a user to force the
addition of unwind tables. Unwind tables cannot be disabled on targets
that require them for correctness, or when using `-C panic=unwind`.
2020-05-04 12:08:35 +01:00
..
auxiliary Remove eh_unwind_resume lang item 2020-03-05 17:36:50 +00:00
consts Bless tests 2020-04-29 12:18:30 -07:00
specialization Remove licenses 2018-12-25 21:08:33 -07:00
asm-src-loc-codegen-units.rs Update tests to use llvm_asm! 2020-03-26 15:49:22 +00:00
asm-src-loc.rs Update tests to use llvm_asm! 2020-03-26 15:49:22 +00:00
coerce-unsafe-closure-to-unsafe-fn-ptr.rs Allow closure to unsafe fn coercion 2019-04-01 00:00:43 +09:00
coerce-unsafe-to-closure.rs Remove licenses 2018-12-25 21:08:33 -07:00
crateresolve1.rs Remove licenses 2018-12-25 21:08:33 -07:00
empty-extern-arg.rs Remove licenses 2018-12-25 21:08:33 -07:00
invalid-link-args.rs Rename and fix nolink-with-link-args test 2018-12-31 13:51:40 +02:00
issue-10755.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-23595-1.rs Fix rebase and sort assoc type list for deterministic output 2019-12-25 11:12:56 -08:00
issue-43733-2.rs fix compile-fail test for targets without thread locals 2019-06-19 11:50:23 -07:00
issue-44415.rs Get rid of special const intrinsic query in favour of const_eval 2019-09-17 16:31:55 +02:00
issue-46209-private-enum-variant-reexport.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-52443.rs Bless tests 2020-04-29 12:18:30 -07:00
meta-expected-error-wrong-rev.rs Remove licenses 2018-12-25 21:08:33 -07:00
must_use-in-stdlib-traits.rs Stabilize futures_api 2019-04-23 16:13:53 -07:00
not-utf8.bin Moved problematic tests on Windows back to compile-fail. 2018-08-14 11:12:11 +02:00
not-utf8.rs Remove licenses 2018-12-25 21:08:33 -07:00
panic-handler-missing.rs Remove licenses 2018-12-25 21:08:33 -07:00
panic-handler-twice.rs Diagnostics should not end with a full stop 2020-01-12 15:37:50 +00:00
runtime-depend-on-needs-runtime.rs Address review comments and CI failures 2018-12-27 15:51:37 +03:00
runtime-depend-on-needs-runtime.stderr Address review comments and CI failures 2018-12-27 15:51:37 +03:00
two-panic-runtimes.rs rustc: Fix mixing crates with different share_generics 2019-09-23 12:29:51 -07:00
unwind-tables-panic-required.rs Add Option to Force Unwind Tables 2020-05-04 12:08:35 +01:00
unwind-tables-target-required.rs Add Option to Force Unwind Tables 2020-05-04 12:08:35 +01:00
want-abort-got-unwind.rs Remove licenses 2018-12-25 21:08:33 -07:00
want-abort-got-unwind2.rs Remove licenses 2018-12-25 21:08:33 -07:00
weak-lang-item.rs Upgrade Emscripten targets to use upstream LLVM backend 2019-10-16 17:06:48 -07:00