Use int for WCHAR_TYPE only for TARGET_LP64
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 29 Jun 2012 22:21:30 +0000 (22:21 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 29 Jun 2012 22:21:30 +0000 (15:21 -0700)
PR target/53539
* config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
TARGET_LP64.

From-SVN: r189085

gcc/ChangeLog
gcc/config/i386/gnu-user64.h

index a52e7a0..0fca228 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/53539
+       * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
+       TARGET_LP64.
+
 2012-06-29  Sterling Augustine  <saugustine@google.com>
 
        * dwarf2out.c (add_pubname): Add comment.
index 0e66d26..2941332 100644 (file)
@@ -91,3 +91,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #define TARGET_THREAD_SPLIT_STACK_OFFSET \
   (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30)
 #endif
+
+#undef WCHAR_TYPE
+#define WCHAR_TYPE (TARGET_LP64 ? "int" : "long int")