summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-04-16 18:26:07 +0200
committerIvan Maidanski <ivmai@mail.ru>2012-05-01 16:52:17 +0200
commitcfc93a13d6aff2d764c098021daebd27f239cbf3 (patch)
treed33c39d7b035434f755ee18421b57a4cbf79a0f1
parent8a478018e7eeced207f9bf8ab1ba6c892356f3a0 (diff)
Define ALIGNMENT and CPP_WORDSZ for x32
* include/private/gcconfig.h: (ALIGNMENT): Set to 4 for x32. (CPP_WORDSZ): Set to 32 for x32.
-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 dbb4153..767859c 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -2085,8 +2085,13 @@
# ifdef X86_64
# define MACH_TYPE "X86_64"
-# define ALIGNMENT 8
-# define CPP_WORDSZ 64
+# ifdef __ILP32__
+# define ALIGNMENT 4
+# define CPP_WORDSZ 32
+# else
+# define ALIGNMENT 8
+# define CPP_WORDSZ 64
+# endif
# ifndef HBLKSIZE
# define HBLKSIZE 4096
# endif