Define ALIGNMENT and CPP_WORDSZ for x32
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 16 Apr 2012 16:26:07 +0000 (09:26 -0700)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 1 May 2012 14:52:17 +0000 (18:52 +0400)
* include/private/gcconfig.h: (ALIGNMENT): Set to 4 for x32.
(CPP_WORDSZ): Set to 32 for x32.

include/private/gcconfig.h

index dbb41530acba61d60fa1a532a44796e993725ddc..767859c0df41c7316b8d2c0b15d5982dbc3636cf 100644 (file)
 
 # 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