Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compiler defines for arm ports



Hi!

Can someone please explain which ports define "__arm32__" and which
define "__arm__" and which one should be checked?

Is there/will there be "__arm64__" as well?

(The question came up when I tried feeding back imake patches
upstream, see attached for our current local diff to upstream; ignore
the second chunk for this question.)
 Thomas

(Please CC me, I'm not on this mailing list)
From f1a051109a1304d3bb7a6452f42d1d865a14e110 Mon Sep 17 00:00:00 2001
From: Thomas Klausner <wiz%NetBSD.org@localhost>
Date: Thu, 20 Mar 2014 11:32:39 +0100
Subject: [PATCH:cf 1/2] NetBSD: add AMD64Architecture, fix Arm32Architecture.

Signed-off-by: Thomas Klausner <wiz%NetBSD.org@localhost>
---
 Imake.cf | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Imake.cf b/Imake.cf
index 2b6c649..9e438e7 100644
--- a/Imake.cf
+++ b/Imake.cf
@@ -238,8 +238,9 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/16 
21:30:21 herrb Exp $
 # ifdef mc68000
 #   define Mc68020Architecture
 # endif
-# ifdef __arm32__
+# if defined(__arm__) || defined(__arm32__)
 #   define Arm32Architecture
+#   undef __arm__
 #   undef __arm32__
 # endif
 # ifdef __vax__
@@ -250,6 +251,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/16 
21:30:21 herrb Exp $
 #   define PpcArchitecture
 #   undef __powerpc__
 # endif
+# ifdef __x86_64__
+#  define AMD64Architecture
+#  undef __x86_64__
+# endif
 #endif /* NetBSD */
 
 /* Systems based on kernel of NetBSD */
-- 
1.9.0



Home | Main Index | Thread Index | Old Index