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 fail-unwind machinery to rustc #236

Closed
graydon opened this issue Feb 23, 2011 · 2 comments
Closed

add fail-unwind machinery to rustc #236

graydon opened this issue Feb 23, 2011 · 2 comments
Assignees
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

Comments

@graydon
Copy link
Contributor

graydon commented Feb 23, 2011

code coming out of rustc can't fail-and-unwind properly. it needs to learn how to.

@ghost ghost assigned espindola May 26, 2011
@pcwalton
Copy link
Contributor

brson is having issues getting LLVM unwinding to work on Windows. Will need to investigate. We may need to add the support to LLVM ourselves.

@ghost ghost assigned brson Sep 7, 2011
brson added a commit that referenced this issue Sep 7, 2011
brson added a commit that referenced this issue Sep 7, 2011
brson added a commit that referenced this issue Sep 7, 2011
The motivation here is that the bottom of each stack needs to contain a C++
try/catch block so that we can unwind. This is already the case for main, but
not spawned tasks.

Issue #236
brson added a commit that referenced this issue Sep 7, 2011
When a task fails, we will throw an exception, then catch it at the bottom of
the stack.

On Windows we don't do this yet because the exception doesn't propagate
correctly.

No cleanups yet.

Issue #236
brson added a commit that referenced this issue Sep 12, 2011
This just wraps __gxx_personality_v0 with our upcall naming convention

Issue #236
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
This will avoid running cleanups on uninitialized memory

Issue #236
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
This allows landing pads to be generated around fail statements

Issue #236
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
brson added a commit that referenced this issue Sep 12, 2011
The function might fail, leaving the local uninitialized

Issue #236
brson added a commit that referenced this issue Sep 12, 2011
Happy to close the loop on this one.

Issue #236
brson added a commit that referenced this issue Sep 12, 2011
They worked without modifications, but I wrote them so we're keeping them.

Issue #236
@brson
Copy link
Contributor

brson commented Sep 12, 2011

Implemented for Linux and Mac, but not efficient. No implementation for Windows. Will open additional issues.

@brson brson closed this as completed Sep 12, 2011
oli-obk added a commit to oli-obk/rust that referenced this issue Jul 19, 2017
Use a wrapper type to differentiate between `PrimVal` and pointers
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
…l, r=alexcrichton

Use now available link name "signal" instead of "bsd_signal"

On android, the `bsd_signal` is gone, the `signal` is available.

While this is the most obvious solution, I am not sure of a few things:
- How are we going to keep compatibility with older NDKs where `signal` does not exist;
- Was something dependent on this being different on android and thus would break (for example, the rust compiler uses this function, so it may break somewhere).

Fixes rust-lang#236.
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
Document that &mut T can deref-coerce to &U.
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Allow cachelicm within subregion

* Correct CacheLICM
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this issue Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
Projects
None yet
Development

No branches or pull requests

4 participants