about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-08-02 12:30:43 -0700
committerAlex Crichton <alex@alexcrichton.com>2018-08-07 08:42:38 -0700
commit7c58ab671fb49200c0cbd1ad9218713a5c3afe0d (patch)
tree98ffced29d28fd7353586a2663fcc8cbfae47b44 /src/test/incremental/thinlto
parent38eeebdfed97af43354ed924e498764e8f9cdae5 (diff)
downloadrust-7c58ab671fb49200c0cbd1ad9218713a5c3afe0d.tar.gz
rust-7c58ab671fb49200c0cbd1ad9218713a5c3afe0d.zip
rustc: Tweak visibility of some lang items
This commit tweaks the linker-level visibility of some lang items that rustc
uses and defines. Notably this means that `#[panic_implementation]` and
`#[alloc_error_handler]` functions are never marked as `internal`. It's up to
the linker to eliminate these, not rustc.

Additionally `#[global_allocator]` generated symbols are no longer forced to
`Default` visibility (fully exported), but rather they're relaxed to `Hidden`
visibility). This symbols are *not* needed across DLL boundaries, only as a
local implementation detail of the compiler-injected allocator symbols, so
`Hidden` should suffice.

Closes #51342
Closes #52795
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions