tst-preadvwritev, tst-preadvwritev64 failing for MIPS n32
Adhemerval Zanella
adhemerval.zanella@linaro.org
Mon Jul 4 13:13:00 GMT 2016
On 01/07/2016 20:54, Joseph Myers wrote:
> With the consolidated preadv and pwritev implementations, I see
>
> FAIL: misc/tst-preadvwritev
> FAIL: misc/tst-preadvwritev64
>
> for MIPS n32 (note: since these are new tests I haven't confirmed whether
> the problem was actually introduced by the consolidation, or present
> before). The failures are:
>
> error: first PWRITEV returned -1 (line 70)
>
> Note: for these syscalls n32 uses the compat implementation in the kernel
> (as required to use the compat iovec structure), meaning the off_t
> arguments are passed in two separate registers.
>
It is an issue with consolidation patch, the LO_HI_LONG should be guarded
as:
/* Provide a macro to pass the off{64}_t argument on p{readv,writev}{64}. */
-#if __WORDSIZE == 64 || defined __ASSUME_WORDSIZE64_ILP32
+#ifdef __OFF_T_MATCHES_OFF64_T
# define LO_HI_LONG(val) (val)
#else
# define LO_HI_LONG(val) \
I will send with this change.
More information about the Libc-alpha
mailing list