From 0d96b1434d828c66f000b9439fdf7f0b00fd5a48 Mon Sep 17 00:00:00 2001 From: hjl Date: Fri, 11 May 2012 17:46:30 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187412 138bc75d-0d04-0410-961f-82ee72b054a4 --- boehm-gc/include/private/gcconfig.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'boehm-gc/include/private') diff --git a/boehm-gc/include/private/gcconfig.h b/boehm-gc/include/private/gcconfig.h index fb09cf73cc0..0263c13fd88 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 -- cgit v1.2.1