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

add c_unwind feature #583

Merged
merged 1 commit into from
Mar 28, 2024
Merged

add c_unwind feature #583

merged 1 commit into from
Mar 28, 2024

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Mar 27, 2024

The c_unwind feature is special in that just enabling the feature has a side-effect of treating all extern "C" functions different, in terms of how unwinding is handled. This crate has lots of extern "C" functions and is very sensitive to unwinding (in the sense that no panic code may be called from this crate), so it seems like a good idea to ensure that compiler-builtins works with this feature before stabilizing (Cc rust-lang/rust#116088).

So... let's see what all the extra checks in CI here say. This may require a patch like this, or maybe not.

Cc @nbdd0121

@RalfJung
Copy link
Member Author

Looks like macOS is unhappy, so we do need that patch after all I guess.

@RalfJung
Copy link
Member Author

Ah no, #582 isn't resolved yet. So likely unrelated.

@Amanieu
Copy link
Member

Amanieu commented Mar 28, 2024

CI should be fixed now, can you rebase?

@RalfJung
Copy link
Member Author

Rebase done. CI looks good. :)

@Amanieu Amanieu merged commit f8cd410 into rust-lang:master Mar 28, 2024
22 checks passed
@RalfJung
Copy link
Member Author

FWIW this may have perf impacts so the rustc PR that bumps compiler-builtins to include this change should probably be rollup=never.

@RalfJung RalfJung deleted the c_unwind branch March 28, 2024 15:16
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 10, 2024
update compiler_builtins to 0.1.109

This pulls in rust-lang/compiler-builtins#583 so we should make sure that does not come with any perf surprises.

Cc `@Amanieu`
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 13, 2024
…imulacrum

update compiler_builtins to 0.1.109

This pulls in rust-lang/compiler-builtins#583 so we should make sure that does not come with any perf surprises.

Cc `@Amanieu`
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 14, 2024
…imulacrum

update compiler_builtins to 0.1.109

This pulls in rust-lang/compiler-builtins#583 so we should make sure that does not come with any perf surprises.

Cc `@Amanieu`
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 14, 2024
…imulacrum

update compiler_builtins to 0.1.109

This pulls in rust-lang/compiler-builtins#583 so we should make sure that does not come with any perf surprises.

Cc `@Amanieu`
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Apr 15, 2024
update compiler_builtins to 0.1.109

This pulls in rust-lang/compiler-builtins#583 so we should make sure that does not come with any perf surprises.

Cc `@Amanieu`
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.

2 participants