diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-02-10 10:19:29 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-02-14 21:09:12 -0300 |
commit | 6cc8fc7c1506e8084d65b078ff5b05a92e17a28a (patch) | |
tree | 45408781cacf7d24634caa7999d0d55d3a2d1242 /sysdeps/init_array/elf-init.c | |
parent | 861be5fd6601bed58b63ae0eb23097abf1ac0e1c (diff) | |
download | glibc-6cc8fc7c1506e8084d65b078ff5b05a92e17a28a.tar.gz glibc-6cc8fc7c1506e8084d65b078ff5b05a92e17a28a.tar.xz glibc-6cc8fc7c1506e8084d65b078ff5b05a92e17a28a.zip |
microblaze: Avoid clobbering register parameters in syscall
The microblaze 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 microblaze-linux-gnu and microblazeel-linux-gnu build.
Diffstat (limited to 'sysdeps/init_array/elf-init.c')
0 files changed, 0 insertions, 0 deletions