aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2012-06-29 22:21:30 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2012-06-29 15:21:30 -0700
commitdc7267351ebc216085566a216e68f398ba63c2a9 (patch)
treecbf58cec20344d46dca9e951de36d1e6d47ac23f
parentdfa15de2a29f1e359631df5d0a3dd9c978a88383 (diff)
downloadgcc-dc7267351ebc216085566a216e68f398ba63c2a9.zip
gcc-dc7267351ebc216085566a216e68f398ba63c2a9.tar.gz
gcc-dc7267351ebc216085566a216e68f398ba63c2a9.tar.bz2
Use int for WCHAR_TYPE only for TARGET_LP64
PR target/53539 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for TARGET_LP64. From-SVN: r189085
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/gnu-user64.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a52e7a0..0fca228 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/i386/gnu-user64.h b/gcc/config/i386/gnu-user64.h
index 0e66d26..2941332 100644
--- a/gcc/config/i386/gnu-user64.h
+++ b/gcc/config/i386/gnu-user64.h
@@ -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")