Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc: Preserve reachable extern fns with LTO #14710

Closed
wants to merge 1 commit into from

Conversation

alexcrichton
Copy link
Member

All rust functions are internal implementation details with respect to the ABI
exposed by crates, but extern fns are public components of the ABI and shouldn't
be stripped. This commit serializes reachable extern fns to metadata, so when
LTO is performed all of their symbols are not stripped.

@@ -0,0 +1,8 @@
-include ../tools.mk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you write a sentence or two about what this is testing (just so that someone can work out approximately what it is doing without having to load up the whole issue)?

@huonw
Copy link
Member

huonw commented Jun 7, 2014

r=me with comment.

All rust functions are internal implementation details with respect to the ABI
exposed by crates, but extern fns are public components of the ABI and shouldn't
be stripped. This commit serializes reachable extern fns to metadata, so when
LTO is performed all of their symbols are not stripped.

Closes rust-lang#14500
@bors bors closed this in e87e180 Jun 7, 2014
@alexcrichton alexcrichton deleted the issue-14500 branch June 7, 2014 05:18
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
…lers, r=Veykril

chore: rust-analyzer: refactor notification handlers

Fixes the FIXME in `on_notification`.

```rust
// FIXME: Move these implementations out into a module similar to on_request
```

No code has changed, this just moves stuff around.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants