From 936c1d5f7b8e8e91f7263bbff884a9d2377951f2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 16 Apr 2012 09:26:07 -0700 Subject: [PATCH] Define ALIGNMENT and CPP_WORDSZ for x32 * include/private/gcconfig.h: (ALIGNMENT): Set to 4 for x32. (CPP_WORDSZ): Set to 32 for x32. --- include/private/gcconfig.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 0cfa1542..aff78740 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2120,8 +2120,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 -- 2.40.0