[PATCH] mips: Fix argument passing for inlined syscalls on Linux [BZ #25523]
Joseph Myers
joseph@codesourcery.com
Mon Feb 10 22:34:00 GMT 2020
On Mon, 10 Feb 2020, WANG Xuerui wrote:
> diff --git a/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h b/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
> index beefcf284b..c275d63f67 100644
> --- a/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
> +++ b/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
> @@ -178,10 +178,11 @@ union __mips_syscall_return
> long _sys_result; \
> \
> { \
> + long _arg1 = (long) (arg1); \
The glibc style is to use "long int" in place of "long", so I think the
new variables should do that throughout the patch (and likewise "long long
int").
Please post a revised patch, and say if you need someone to commit it for
you.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list