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

Fix MinGW hang issue #35

Merged
merged 2 commits into from
Aug 3, 2024
Merged

Fix MinGW hang issue #35

merged 2 commits into from
Aug 3, 2024

Conversation

jchv
Copy link
Collaborator

@jchv jchv commented Aug 2, 2024

WIP: For now this just reproduces the issue by having IJL throw an exception.

OK: The identified problem is fixed now. It was a problem with the shim for _aullshr. For MSVC, we had some inline asm that was effectively equivalent to MS's implementation, but for GCC we were just falling back on the fact that MinGW can just generate this code. However, for some reason, my _aullshr stub was set to __stdcall. It's pretty blatantly obvious from the MSVC version that this is not correct.

We already need some stuff that has to be expressed in assembly language (at least __except_list) so I remove the hardcoded rtsyms.o file and move _aullshr and all of the special symbols to stubs.S and stubs.asm (for MSVC and GCC respectively.)

Going to try to figure out if that resolves the problem fully or if there's anything else resolved.

Also, finally enables testing in CI. :)

@jchv jchv marked this pull request as ready for review August 3, 2024 13:34
@jchv jchv merged commit f6ceef8 into master Aug 3, 2024
7 checks passed
@jchv jchv deleted the fix-mingw branch August 3, 2024 13:34
@jchv jchv mentioned this pull request Aug 3, 2024
@jchv jchv linked an issue Aug 3, 2024 that may be closed by this pull request
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.

Hanging with 2.0-rc2 MinGW
1 participant