This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Use RXX_LP, LP_OP, LP_SIZE and ASM_ADDR in nptl
- From: Andreas Jaeger <aj at suse dot com>
- To: libc-alpha at sourceware dot org
- Date: Sat, 17 Mar 2012 20:07:32 +0100
- Subject: Re: PATCH: Use RXX_LP, LP_OP, LP_SIZE and ASM_ADDR in nptl
- References: <20120317163625.GA16465@intel.com>
On 03/17/2012 05:36 PM, H.J. Lu wrote:
Hi,
This patch changes nptl x86-64 assembly codes to use RXX_LP, LP_OP, LP_SIZE
and ASM_ADDR on long and pointers. It uses RXX_LP when operating on
registers which contain long and pointers. It uses LP_OP when
operating memory operands which contain long and pointers. It uses
LP_SIZE and ASM_ADD for pointer operations.
Seeing these patches, I'm concerned that people working on x86-64 will
break x32 with not using all the macros.
IMO it makes sense to document somewhere - perhaps in the glibc wiki? -
how to write x86-64 code for glibc so that it works on x32 as well.
HJ, would this be possible?
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126