summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gmail.com>2015-02-13 20:44:37 +0300
committerIvan Maidanski <ivmai@mail.ru>2015-02-13 20:44:37 +0300
commitb399b13b9e4be18c6a38d315bdb957303f0226d4 (patch)
treece66453b578cac872af6297a72a26e5bf45f7973
parentbf62552626acc7ad8babdc350a6365cb97ec8776 (diff)
downloadbdwgc-b399b13b9e4be18c6a38d315bdb957303f0226d4.tar.gz
Add AArch64-32 target support
(Implement boehm-gc for AARCH64:ILP32) * include/private/gcconfig.h (CPP_WORDSZ, ALIGNMENT): Correct for AARCH64:ILP32.
-rw-r--r--include/private/gcconfig.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index aa80d532..989a7343 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -2020,9 +2020,14 @@
# endif
# ifdef AARCH64
-# define CPP_WORDSZ 64
# define MACH_TYPE "AARCH64"
-# define ALIGNMENT 8
+# ifdef __ILP32__
+# define CPP_WORDSZ 32
+# define ALIGNMENT 4
+# else
+# define CPP_WORDSZ 64
+# define ALIGNMENT 8
+# endif
# ifndef HBLKSIZE
# define HBLKSIZE 4096
# endif