aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2012-05-11 17:46:30 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2012-05-11 10:46:30 -0700
commitdddb75f3fa9b950d68ff6047bc960cd89a1659df (patch)
tree9ac4b5bdf8e10cc8740b61c39ab790f84ef611cb /boehm-gc
parentd2b21f206228ea1829a06f19c23d60c159a8d612 (diff)
downloadgcc-dddb75f3fa9b950d68ff6047bc960cd89a1659df.zip
gcc-dddb75f3fa9b950d68ff6047bc960cd89a1659df.tar.gz
gcc-dddb75f3fa9b950d68ff6047bc960cd89a1659df.tar.bz2
Merge upstream x32 support into boehm-gc
Merge upstream changes * include/private/gcconfig.h: (ALIGNMENT): Set to 4 for x32. (CPP_WORDSZ): Set to 32 for x32. From-SVN: r187412
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog6
-rw-r--r--boehm-gc/include/private/gcconfig.h9
2 files changed, 13 insertions, 2 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index fcefa84..0d83083 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/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>
diff --git a/boehm-gc/include/private/gcconfig.h b/boehm-gc/include/private/gcconfig.h
index fb09cf7..0263c13 100644
--- a/boehm-gc/include/private/gcconfig.h
+++ b/boehm-gc/include/private/gcconfig.h
@@ -1974,8 +1974,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