-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Incorrect code generated for fastcall
functions on i686-pc-windows-gnu
#91167
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Oh, I forgot: it was suggested that I include my config.toml:
Also please note that rustc generates correct code for this case on i686-pc-windows-msvc (with the obvious change to config.toml). |
I don't think it's Rustc issue but either LLVM or GCC. If I'd bet I'd say it's GCC. |
That makes sense. To be honest, I mostly wanted to make sure this issue is documented. I've got a test case that is currently disabled for unrelated reasons that trips over this bug, so I want to have an issue number that I can put into the comments when I disable the affected functions calls as part of re-enabling the larger test. |
…-fix, r=Mark-Simulacrum Fix src/test/run-make/raw-dylib-alt-calling-convention Fix the test headers so that the test now runs on all intended platforms; it is currently ignored on all platforms because the headers are incorrect. Also comment out a couple of function calls that fail because of an unrelated problem, described in issue rust-lang#91167.
I tried this code:
linked against the following C code (compiled to
extern.dll
):I expected to see this output:
Instead, I got this output:
Meta
rustc --version --verbose
:Reproed against commit 7b3cd07 of master.
To reproduce, check out the fastcall-bug branch on my fork of rustc; the reproduction case is in src/test/run-make/fastcall-bug.
The text was updated successfully, but these errors were encountered: