Displaying 1 result from an estimated 1 matches for "r127429".
Did you mean:
1127429
2011 Mar 10
1
[LLVMdev] compiler-rt: Infinite loop/stack overflow in __modsi3()
Hi All,
The default implementation of __modsi3() (signed integer modulus)
in compiler-rt/lib/modsi3.c is defined recursively. Thankfully, LLVM is
smart enough to do tail call elimination on the recursion, so I got an
infinite loop rather than a stack overflow :)
Here's the patch, patterned after the correct implementation in
umodsi3.c:
diff --git a/lib/compiler-rt/lib/modsi3.c