1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-11 12:10:50 +03:00
Files
glibc/sysdeps/unix/sysv/linux/riscv
Adhemerval Zanella be74b42ee2 riscv: Avoid clobbering register parameters in syscall
The riscv 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 with riscv64-linux-gnu-rv64imafdc-lp64d build.
2020-02-14 21:09:12 -03:00
..
2018-01-29 10:43:15 -08:00
2018-01-29 10:43:15 -08:00
2018-01-29 10:37:28 -08:00
2018-01-29 10:43:15 -08:00
2018-01-29 10:37:27 -08:00
2018-01-29 10:43:15 -08:00