]> granicus.if.org Git - gc/commitdiff
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:43:17 +0000 (18:43 +0400)
* include/private/gcconfig.h: (ALIGNMENT): Set to 4 for x32.
(CPP_WORDSZ): Set to 32 for x32.

include/private/gcconfig.h

index 0cfa1542bc76b5b06dfe48ed1522f65cfc8025e3..aff7874076ffd3c5c6055d1474dcb852b2af8cf0 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