-
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
Nightly crashes trying to compile a naked function macro with inline asm #37366
Comments
Minimised: #![crate_type="lib"]
#![feature(asm)]
macro_rules! interrupt_handler {
() => {
unsafe fn interrupt_handler() {
asm!("pop eax" :::: "intel");
}
}
}
interrupt_handler!{} It seems like we fail at reporting the error in question through the macros somehow. |
We're trying to report in |
Maybe this might help as well. Locally i build for i686-unknown-linux-gnu target and sometimes it actually builds fine without crashes, errors or warnings, and then runs. I haven't been able to pinpoint specific change that makes this inline asm piece not crash the compiler, sometimes it just works. Also, locally usually release target crashes and not debug (playground does the opposite). |
Unassigning since @jseyfried probably isn't going to be the one to add the test. |
Add tests for a few issues. Fixes rust-lang#41998 Fixes rust-lang#38381 Fixes rust-lang#37515 Fixes rust-lang#37510 Fixes rust-lang#37508 Fixes rust-lang#37366 Fixes rust-lang#37323 Fixes rust-lang#37051 Fixes rust-lang#36839 Fixes rust-lang#35570 Fixes rust-lang#34373 Fixes rust-lang#34222 Certainly not all of the E-needstest issues right now, but I started to get bored.
Building https://is.gd/qud5dG with nightly 10-07 and 10-20 crashes with the following message:
The text was updated successfully, but these errors were encountered: