-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Cleanup and document -Z tls-model
#71558
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some clarifications for the documentation.
------------------------ | ||
|
||
Option `-Z tls-model` controls [TLS model](https://www.akkadia.org/drepper/tls.pdf) used to | ||
generate code for accessing `#[thread_local]` `static` items. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically speaking, the TLS model is supposed to be a per-variable attribute rather than a global one. However we don't currently have such an attribute, only a global setting which sets the default TLS model for all variables.
Updated. |
@bors r+ |
📌 Commit 66e41723c8694612efddd2f2e6d70abc557f61f3 has been approved by |
☔ The latest upstream changes (presumably #71579) made this pull request unmergeable. Please resolve the merge conflicts. |
Rollup of 5 pull requests Successful merges: - rust-lang#71421 (Add a function to turn Box<T> into Box<[T]>) - rust-lang#71537 (Remove support for self-opening) - rust-lang#71551 (Minor refactoring around IndexVec usage in generator transformation) - rust-lang#71569 ([miri] Throw UB if target size and data size don't match) - rust-lang#71576 (check that `AsRef` and `AsMut` are inlined) Failed merges: - rust-lang#71558 (Cleanup and document `-Z tls-model` ) r? @ghost
Introduce `enum TlsModel` instead.
@bors r=Amanieu |
📌 Commit 45dc435 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#67841 (Add Read/Write::can_read/write_vectored) - rust-lang#71524 (Minimize parameter of coerce_borrowed_pointer()) - rust-lang#71558 (Cleanup and document `-Z tls-model` ) - rust-lang#71578 (linkchecker: fix typo in main.rs) - rust-lang#71596 (Fix broken link in `QPath` documentation) - rust-lang#71604 (make recursive-zst test unleashed) - rust-lang#71605 (No need to whitelist E0750 anymore) Failed merges: r? @ghost
r? @Amanieu