On 4/6/23 23:25, ポニー電機(株) 星野 wrote:
Where I talk about is: /libgcc/config/v850/lib1funcs.S L2214, L2259 - in a
commit 8b1204d7.
There are stack-pointer operations.
I think these operations: shrink before, grow after --- may reversed way.
There is one more consideration; this version of __muldi3() does not use
local storage in stack. So the problem will be resolved simply to remove
sp-operations.
I have no idea to show a reproduce way in shortly.
Because a problem happens with inter-procedure such as interrupt service
routines which use storage in stack.
In my environment, the next patch works well.
[ ... ]
Thanks for tracking this down! Presumably when the interrupt occurred
in that window of instructions you'd end up clobbering saved data on the
stack.
These kinds of bugs are often difficult to track down. Thanks for
taking the time to do so.
I've pushed your patch to the trunk,
Jeff