]> granicus.if.org Git - gc/commitdiff
Merge upstream x32 support into boehm-gc
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 May 2012 17:46:30 +0000 (17:46 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 15 Sep 2013 09:12:44 +0000 (13:12 +0400)
Merge upstream changes
* include/private/gcconfig.h: (ALIGNMENT): Set to 4 for x32.
(CPP_WORDSZ): Set to 32 for x32.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187412 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
include/private/gcconfig.h

index fcefa849157d2e9980bc7408cf3d9a05fa3c08e5..0d8308365830159c8f699a1168b948019f64d749 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Merge upstream changes
+       * include/private/gcconfig.h: (ALIGNMENT): Set to 4 for x32.
+       (CPP_WORDSZ): Set to 32 for x32.
+
 2012-02-27  Jack Howarth  <howarth@bromo.med.uc.edu>
            Patrick Marlier  <patrick.marlier@gmail.com>
 
index fb09cf73cc0df670b0402006be1ad0049b408732..0263c13fd885aad19bc7d62d69acefe743d14ca8 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