This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/9][BZ 16892] Generic lowlevellock.h
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Bernie Ogden <bernie dot ogden at linaro dot org>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Mon, 9 Jun 2014 20:47:26 +0000
- Subject: Re: [PATCH 0/9][BZ 16892] Generic lowlevellock.h
- Authentication-results: sourceware.org; auth=none
- References: <CALE0ps2vPArq3OZ9oKpvKNDBZdW+ti9ZtgmYohdzQiD=ijCyAQ at mail dot gmail dot com>
On Mon, 9 Jun 2014, Bernie Ogden wrote:
> 2) A few platforms (eg aarch64) used to cast futexp to long in a few
> functions and no longer do so. I couldn't see why they were doing
> that, but maybe I'm being dumb. I've flagged up affected files in the
> relevant mails.
In the MIPS case, I suspect it was to avoid direct conversions from
pointers (32-bit) to long long (64-bit) for n32 syscall arguments -
although the log for commit 6428ce3cdad3d587fb77f2f1d0d7036f780fa9e0 says
"for n64". n32 sysdep.h now defines ARGIFY in a way that avoids problems
with conversion warnings there, so I think the casts are obsolete for
MIPS.
--
Joseph S. Myers
joseph@codesourcery.com