Skip to content
Commit 9a1bdd7d authored by Stefan Liebler's avatar Stefan Liebler
Browse files

S390: Do not clobber r7 in clone [BZ #31402]

Starting with commit e57d8fc9
"S390: Always use svc 0"
clone clobbers the call-saved register r7 in error case:
function or stack is NULL.

This patch restores the saved registers also in the error case.
Furthermore the existing test misc/tst-clone is extended to check
all error cases and that clone does not clobber registers in this
error case.

(cherry picked from commit 02782fd1)
Note: Added ia64 __clone2 call to tst-clone.c.
parent 23021eda
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment