Skip to content

Support -Cpanic=unwind without unwinding #132

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

Merged
merged 2 commits into from
Feb 27, 2022

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Feb 26, 2022

This is necessary for bootstrapping rustc as compiling rustc with -Cpanic=abort is rather hard if at all possible. This does not implement actual unwinding on panics.

The cleanup blocks normally executed when unwinding are unreachable for
now as unwinding is not yet implemented.
@antoyo antoyo merged commit 710b741 into rust-lang:master Feb 27, 2022
@antoyo
Copy link
Contributor

antoyo commented Feb 27, 2022

Thanks a lot!

@bjorn3 bjorn3 deleted the panic_unwind branch February 27, 2022 09:05
@bjorn3
Copy link
Member Author

bjorn3 commented Feb 27, 2022

This PR fixed 12 rust tests it seems.

@antoyo
Copy link
Contributor

antoyo commented Feb 27, 2022

This PR fixed 12 rust tests it seems.

Yeah, I was wondering whether it was this PR or the bug for int vs bool that was fixed.

@bjorn3
Copy link
Member Author

bjorn3 commented Feb 27, 2022

That is also a possibility.

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