On 06/27/13 01:56, Joseph S. Myers wrote:
On Wed, 26 Jun 2013, Yufeng Zhang wrote:
This patch defines _ILP32 and __ILP32__ for the AArch64 port when the ILP32
ABI is in use.
This helps libraries, e.g. libgloss and glibc, recognize which model is being
compiled.
GCC already defines _LP64 and __LP64__ in architecture-independent code
for LP64 systems. Libraries can use those to distinguish the two models
for AArch64, so I don't see any need to add architecture-specific macros
with the opposite sense.
We need a reliable way to tell we are compiling for ILP32. On one hand
LLP64 support may be added in the future; on the other hand, not all
AArch64 compilers may define _LP64 and __LP64__.
Other ports like x86_64, ia64-hpux and pa-hpux also define one or both.
Thanks,
Yufeng