--- gcc-6-20151221/boehm-gc/include/private/gcconfig.h 2015-12-21 13:21:44.000000000 -0500 +++ gcc-6-20151221/boehm-gc/include/private/gcconfig.h.new 2015-12-21 13:20:26.000000000 -0500 @@ -1041,10 +1041,18 @@ # define MACH_TYPE "I386" # if defined(__LP64__) || defined(_WIN64) # define CPP_WORDSZ 64 -# define ALIGNMENT 8 +# if defined(__APPLE__) +# define ALIGNMENT 2 +# else +# define ALIGNMENT 8 +# endif # else # define CPP_WORDSZ 32 -# define ALIGNMENT 4 +# if defined(__APPLE__) +# define ALIGNMENT 2 +# else +# define ALIGNMENT 4 +# endif /* Appears to hold for all "32 bit" compilers */ /* except Borland. The -a4 option fixes */ /* Borland. */ @@ -2005,10 +2013,18 @@ # ifdef X86_64 # define MACH_TYPE "X86_64" # ifdef __ILP32__ -# define ALIGNMENT 4 +# if defined(__APPLE__) +# define ALIGNMENT 2 +# else +# define ALIGNMENT 4 +# endif # define CPP_WORDSZ 32 # else -# define ALIGNMENT 8 +# if defined(__APPLE__) +# define ALIGNMENT 2 +# else +# define ALIGNMENT 8 +# endif # define CPP_WORDSZ 64 # endif # ifndef HBLKSIZE