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

TODO: Submit bug report somewhere #2

Closed
rohlem opened this issue Dec 25, 2018 · 1 comment
Closed

TODO: Submit bug report somewhere #2

rohlem opened this issue Dec 25, 2018 · 1 comment

Comments

@rohlem
Copy link
Owner

rohlem commented Dec 25, 2018

Submit bug report to either GCC or just MinGW devs, depending on #1; probably a bug tracker, although I think mailing lists will get quicker responses (or do all bug trackers to mailing lists? idk)

@rohlem
Copy link
Owner Author

rohlem commented Apr 20, 2019

Done (as of a couple months ago): header inclusion order, underlying max alignment definition issue.
The underlying cause is that GCC supports some long double type (via compiler builtin __float128), which they align to 16 bytes. However, the provided malloc links directly (apparently without wrapper code?) to the malloc from Microsoft/Windows CRT. So there is a semantic inconsistency here, because max_align_t has to be the maximum primitive alignment, but malloc doesn't obide (Microsoft don't support that __float128 I think).
It doesn't look like the devs are terribly interested in either a practical solution to the inclusion order issue, nor the underlying issue.
Maybe this repository should provide a "quick fix header", but if you took the time to read through the readme, the fix is obvious. And maybe there's an easier way for you to fix the system header, but overwriting system headers is pretty icky in the first place (will probably not survive compiler updates), so I don't see a "clean solution" right now either.

@rohlem rohlem closed this as completed Apr 20, 2019
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

No branches or pull requests

1 participant