-
Notifications
You must be signed in to change notification settings - Fork 35
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
Miscompilation of code in or around Iterator::position #161
Comments
Thanks for the report! What are the results if you add |
If I add "-Ctarget-feature=-loop" to RUSTFLAGS then the results are as expected (no mis-compilation). Verified on the reproduction repo. |
Sorry about that, we have an ongoing issue with the Xtensa backend around the loop optimization feature of the ESP32-S3 and ESP32. I don't think we have a tracking issue for it on esp-rs/rust so we can use this one until its resolved :) |
With the 1.69 release, this should now be fixed. Please let me know if you still run into issues! |
I tried this code (also available at https://github.com/benhansen-io/esp-miscompile-test)
I expected to see this happen:
Instead, this happened:
Without panic abort immediate I also see:
Adding the commented out println! or removing the
opt-level = "s"
both cause the correct output to be displayed.Meta
rustc --version --verbose
:(tested on 1.67.0 too)
The text was updated successfully, but these errors were encountered: