rust/src/test
Miguel Ojeda a65ec44779 Add -Zno-jump-tables
This flag mimics GCC/Clang's `-fno-jump-tables` [1][2], which makes
the codegen backend avoid generating jump tables when lowering switches.

In the case of LLVM, the `"no-jump-tables"="true"` function attribute is
added to every function.

The kernel currently needs it for x86 when enabling IBT [3], as well
as for Alpha (plus VDSO objects in MIPS/LoongArch).

[1] https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#index-fno-jump-tables
[2] https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-fjump-tables
[3] https://github.com/torvalds/linux/blob/v6.1/arch/x86/Makefile#L75-L83

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2022-12-20 21:42:54 +01:00
..
assembly Add -Zno-jump-tables 2022-12-20 21:42:54 +01:00
auxiliary
codegen Add -Zno-jump-tables 2022-12-20 21:42:54 +01:00
codegen-units Statics used in reachable function's inline asm are reachable 2022-11-28 18:28:05 +01:00
debuginfo Fix pretty-std test 2022-11-27 23:15:55 +01:00
incremental Bless incremental tests 2022-12-08 17:28:21 +00:00
mir-opt Support more projections in custom mir 2022-12-14 01:10:19 -08:00
pretty Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726 2022-10-24 19:32:25 +09:00
run-make Rollup merge of #105385 - uweigand:s390x-test-lld, r=Mark-Simulacrum 2022-12-09 22:31:56 +01:00
run-make-fulldeps Use Symbol for the crate name instead of String/str 2022-12-07 20:30:02 +00:00
run-pass-valgrind Bless more tests 2022-11-05 18:05:45 +00:00
rustdoc rustdoc: stop treating everything in a trait item as a method 2022-12-12 12:49:29 -07:00
rustdoc-gui Rollup merge of #105764 - notriddle:notriddle/src-sidebar-toggle, r=GuillaumeGomez 2022-12-16 14:02:20 +01:00
rustdoc-js Add regression test for reexports in search results 2022-10-30 13:58:00 +01:00
rustdoc-js-std
rustdoc-json Add test for #105022 2022-12-02 17:05:37 +00:00
rustdoc-ui Add -Zno-jump-tables 2022-12-20 21:42:54 +01:00
ui Auto merge of #105775 - matthiaskrgr:rollup-2o8qn7e, r=matthiaskrgr 2022-12-16 15:12:00 +00:00
ui-fulldeps Auto merge of #105233 - mejrs:always_eager, r=estebank 2022-12-14 16:16:50 +00:00
COMPILER_TESTS.md