From 3ee7be4c1949fcc99d309bbb40cf117ac1e39641 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 31 Jul 2011 18:10:41 +0000 Subject: [PATCH] Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE. 2011-07-31 H.J. Lu * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead of TARGET_64BIT. (PTRDIFF_TYPE): Likewise. From-SVN: r176981 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/x86-64.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e092d00873d..c631dfc0f79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-07-31 H.J. Lu + + * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead + of TARGET_64BIT. + (PTRDIFF_TYPE): Likewise. + 2011-07-31 Uros Bizjak PR target/49920 diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h index b85dab9cdfc..d20f32630ef 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"