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

Wrap all intrinsics in the intrinsics! macro #452

Merged
merged 2 commits into from
Feb 6, 2022

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Feb 6, 2022

This ensures that each intrinsic ends up in a separate module, which in turn (because rustc treats compiler_builtins specially) will result in each intrinsic ending up in its own object file. This allows the linker to only pick up object files for intrinsics that are missing and avoids duplicate symbol definition errors.

This ensures that each intrinsic ends up in a separate module, which in
turn (because rustc treats compiler_builtins specially) will result in
each intrinsic ending up in its own object file. This allows the linker
to only pick up object files for intrinsics that are missing and avoids
duplicate symbol definition errors.
@Amanieu Amanieu linked an issue Feb 6, 2022 that may be closed by this pull request
@Amanieu Amanieu merged commit 10541a4 into rust-lang:master Feb 6, 2022
@Amanieu Amanieu deleted the intrinsic_mod branch February 6, 2022 09:49
@petrochenkov
Copy link
Contributor

@Amanieu
Do you plan to also bump the compiler-builtins version in the main rust-lang/rust repo?

@Amanieu
Copy link
Member Author

Amanieu commented Feb 6, 2022

Yes, I'm working on it.

Amanieu added a commit to Amanieu/rustc-builtins that referenced this pull request Feb 9, 2022
Accidentally introduced in rust-lang#452
Amanieu added a commit to Amanieu/rustc-builtins that referenced this pull request Feb 9, 2022
Accidentally introduced in rust-lang#452
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 13, 2022
…ark-Simulacrum

Bump compiler-builtins to 0.1.69

This includes rust-lang/compiler-builtins#452 which should fix some issues with duplicate symbol defintions of some intrinsics.
vladimir-ea pushed a commit to vladimir-ea/compiler-builtins that referenced this pull request Mar 8, 2022
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.

Safety of intrinsics
2 participants