Message ID | 20110729224108.GA31295@intel.com |
---|---|
State | New |
Headers | show |
On Sat, Jul 30, 2011 at 12:41 AM, H.J. Lu <hongjiu.lu@intel.com> wrote: > X32 is 32bit. This patch checks TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE. > OK for trunk? OK, if tested on x32. You didn't say how the patch was tested. Thanks, Uros.
On Sat, Jul 30, 2011 at 10:15 AM, Uros Bizjak <ubizjak@gmail.com> wrote: > On Sat, Jul 30, 2011 at 12:41 AM, H.J. Lu <hongjiu.lu@intel.com> wrote: > >> X32 is 32bit. This patch checks TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE. >> OK for trunk? > > OK, if tested on x32. You didn't say how the patch was tested. > Checked in. I should have mentioned that it was tested on x32.
diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h index b85dab9..d20f326 100644 --- a/gcc/config/i386/x86-64.h +++ b/gcc/config/i386/x86-64.h @@ -38,10 +38,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define MCOUNT_NAME "mcount" #undef SIZE_TYPE -#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int") +#define SIZE_TYPE (TARGET_LP64 ? "long unsigned int" : "unsigned int") #undef PTRDIFF_TYPE -#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int") +#define PTRDIFF_TYPE (TARGET_LP64 ? "long int" : "int") #undef WCHAR_TYPE #define WCHAR_TYPE "int"