-
Notifications
You must be signed in to change notification settings - Fork 168
UB in inline-asm delay function #195
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
Oh, you need to clobber the status register explicitly? That seems very easy to forget, we should audit all asm for this. |
I've done an audit of all occurrences of |
|
200: Add CPSR to asm::delay's clobber flags. Fixes #195 r=therealprof a=adamgreig Co-authored-by: Adam Greig <[email protected]>
200: Add CPSR to asm::delay's clobber flags. Fixes #195 r=therealprof a=adamgreig Co-authored-by: Adam Greig <[email protected]>
UB in higher opt levels with inline-asm feature, caused by forgotten asm clobber in asm::delay function.
Example fix:
The text was updated successfully, but these errors were encountered: