[PATCH v2] Xmd.h: Treat __ILP32__ targets as LONG32 ones

Lu, Hongjiu hongjiu.lu at intel.com
Sun Jun 10 09:22:14 PDT 2012


We are proposing to extend x86-64 psABI to support
ILP32 model:

http://gcc.gnu.org/ml/gcc/2012-05/msg00258.html

If a software package needs update to support ILP32
in x86-64, __ILP32__ can used to distinguish LP64 model
from ILP32 model.  If there are no differences
between ILP32 and LP64 models, no changes are needed.  If
an x86-64 compiler doesn't support ILP32 model, checking
__ILP32__ will make sure that it will works.

H.J.


> -----Original Message-----
> From: Alan Coopersmith [mailto:alan.coopersmith at oracle.com]
> Sent: Sunday, June 10, 2012 8:53 AM
> To: Sergei Trofimovich
> Cc: xorg-devel at lists.x.org; Lu, Hongjiu
> Subject: Re: [PATCH v2] Xmd.h: Treat __ILP32__ targets as LONG32 ones
> 
> On 06/ 6/12 11:49 AM, Sergei Trofimovich wrote:
> > amd64-x32 ABI defines sizeof(long) == sizeof (void*) == 4
> 
> And I still maintain that if it defines __amd64__ in a non-LP64
> environment it is fundamentally broken and incompatible with the
> rest of the world.   If your ABI is not 100% compatible with an
> existing one, it needs to define a new symbol, not break all the
> software that knows what the existing ABI symbols were guaranteed
> to mean.
> 
> --
> 	-Alan Coopersmith-              alan.coopersmith at oracle.com
> 	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list