rust/src/test/assembly
bors 0c7d4effd7 Auto merge of #83592 - nagisa:nagisa/dso_local, r=davidtwco
Set dso_local for hidden, private and local items

This should probably have no real effect in most cases, as e.g. `hidden`
visibility already implies `dso_local` (or at least LLVM IR does not
preserve the `dso_local` setting if the item is already `hidden`), but
it should fix `-Crelocation-model=static` and improve codegen in
executables.

Note that this PR does not exhaustively port the logic in [clang], only the
portion that is necessary to fix a regression from LLVM 12 that relates to
`-Crelocation_model=static`.

Fixes #83335

[clang]: 3001d080c8/clang/lib/CodeGen/CodeGenModule.cpp (L945-L1039)
2021-04-06 02:09:01 +00:00
..
asm Disallow the use of high byte registes as operands on x86_64 2021-04-05 13:38:24 +01:00
auxiliary Introduce assembly tests 2019-02-27 23:33:05 +01:00
nvptx-arch-default.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
nvptx-arch-emit-asm.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
nvptx-arch-link-arg.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
nvptx-arch-target-cpu.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
nvptx-atomics.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
nvptx-internalizing.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
nvptx-linking-binary.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
nvptx-linking-cdylib.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
nvptx-safe-naming.rs Ignore NVPTX tests 2019-06-12 23:09:08 +02:00
stack-probes.rs Use probe-stack=inline-asm in LLVM 11+ 2021-01-14 22:49:16 -05:00
static-relocation-model.rs Manually set dso_local when its valid to do so 2021-04-03 00:00:29 +03:00
target-feature-multiple.rs Adjust -Ctarget-cpu=native handling in cg_llvm 2021-03-16 21:32:55 +02:00
x86_64-fortanix-unknown-sgx-lvi-generic-load.rs cleaning up code 2020-09-25 15:13:55 +02:00
x86_64-fortanix-unknown-sgx-lvi-generic-ret.rs cleaning up code 2020-09-25 15:13:55 +02:00
x86_64-fortanix-unknown-sgx-lvi-inline-assembly.rs rust inline assembly lvi hardening test 2020-09-25 15:02:07 +02:00