Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE.
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 31 Jul 2011 18:10:41 +0000 (18:10 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 31 Jul 2011 18:10:41 +0000 (11:10 -0700)
2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
of TARGET_64BIT.
(PTRDIFF_TYPE): Likewise.

From-SVN: r176981

gcc/ChangeLog
gcc/config/i386/x86-64.h

index e092d00873d45e2f70c4a4070669c449f60843a3..c631dfc0f79913a01cfeba158e0c1bc430feebb3 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
+       of TARGET_64BIT.
+       (PTRDIFF_TYPE): Likewise.
+
 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/49920
index b85dab9cdfcc4b93d6d9a8cb4f78da80c90902a6..d20f32630ef2685b3c722782f2cb9aa3602478db 100644 (file)
@@ -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"