diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-02-10 12:57:28 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-02-14 21:09:12 -0300 |
commit | c261718b3fda4b629ee120f48e3ee50db9c793a1 (patch) | |
tree | 19718fdf52ec2ac41630516cae15e137174a7b49 /sysdeps/unix/sysv/linux/alpha/ioperm.c | |
parent | 86c5d2cf0ce046279baddc7faa27da71f1a89fde (diff) | |
download | glibc-c261718b3fda4b629ee120f48e3ee50db9c793a1.tar.gz glibc-c261718b3fda4b629ee120f48e3ee50db9c793a1.tar.xz glibc-c261718b3fda4b629ee120f48e3ee50db9c793a1.zip |
sparc: Avoid clobbering register parameters in syscall
The sparc INTERNAL_SYSCALL macro might clobber the register parameter if the argument itself might clobber any register (a function call for instance). This patch fixes it by using temporary variables for the expressions between the register assignments (as indicated by GCC documentation, 6.47.5.2 Specifying Registers for Local Variables). It is similar to the fix done for MIPS (bug 25523). Checked on sparc64-linux-gnu and sparcv9-linux-gnu.
Diffstat (limited to 'sysdeps/unix/sysv/linux/alpha/ioperm.c')
0 files changed, 0 insertions, 0 deletions