-
-
Notifications
You must be signed in to change notification settings - Fork 745
msvc 2022 + /O1 cannot generate correct instructions #272
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
Comments
This bug has been reported to the Microsoft C++ team. https://developercommunity.visualstudio.com/t/Codegen-bug-on-x64-with-O1-optimize/10825899 |
It does not work for vs2022 on windows arm64 + xmake-io/xmake-repo#6912 (comment) https://github.com/waruqi/github-action-setup-xmake/actions/runs/14519127135
|
When I use msvc 2022 and set the
/O1
optimization option, the compiler generates wrong instructions, causing reading the file to always return 0.https://developercommunity.visualstudio.com/t/Codegen-bug-on-x64-with-O1-optimize/10825899
tbox/src/tbox/platform/windows/file.c
Lines 150 to 159 in 8fe64e4
tb_long_t -> __init64 here
The text was updated successfully, but these errors were encountered: