-
Notifications
You must be signed in to change notification settings - Fork 232
ARMv7-M: infinite recursion with __divmoddi4 / __mulodi4 #145
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
Actually, the problem seems to be let r: i64 = 3;
let b: i64 = 2305846955181360688;
let x = r * b;
// or
let x = mul::__mulodi4(r, b, &mut 0); |
japaric
pushed a commit
that referenced
this issue
Mar 6, 2017
on ARMv7-M processors, divmoddi4 was calling mulodi4 and mulodi4 was calling divmoddi4 leading to infinite recursion. This commit breaks the cycle by using wrapping multiplication in divmoddi4. fixes #145
bors
added a commit
that referenced
this issue
Mar 6, 2017
fix infinite recursion in divmoddi4 / mulodi4 on ARMv7-M processors, divmoddi4 was calling mulodi4 and mulodi4 was calling divmoddi4 leading to infinite recursion. This commit breaks the cycle by using wrapping multiplication in divmoddi4. fixes #145 r? @alexcrichton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
STR
with the target:
thumbv7m-none-eabi
.The above program works fine (it terminates) with the
x86_64-unknown-linux-gnu
target.Meta
The text was updated successfully, but these errors were encountered: