PR target/109402: v850 (not v850e) variant of __muldi3() moves sp in reversed direction [PR109402]
muldi3 will deallocate stack space after the call to __save_r26_r31, then re-allocate the space a short while later. If an interrupt occurs in that window, it can clobber items on the stack. PR target/109402 libgcc/ * config/v850/lib1funcs.S (___muldi3): Remove unnecessary stack manipulations.
This commit is contained in:
parent
c18b1b0bc7
commit
79fb2de020
1 changed files with 0 additions and 2 deletions
|
@ -2211,7 +2211,6 @@ ___ucmpdi2:
|
|||
___muldi3:
|
||||
#ifdef __v850__
|
||||
jarl __save_r26_r31, r10
|
||||
addi 16, sp, sp
|
||||
mov r6, r28
|
||||
shr 15, r28
|
||||
movea lo(32767), r0, r14
|
||||
|
@ -2256,7 +2255,6 @@ ___muldi3:
|
|||
mulh r12, r6
|
||||
mov r28, r17
|
||||
mulh r10, r17
|
||||
add -16, sp
|
||||
mov r28, r12
|
||||
mulh r8, r12
|
||||
add r17, r18
|
||||
|
|
Loading…
Add table
Reference in a new issue