summaryrefslogtreecommitdiffstats
path: root/gcc/config
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-29 22:21:30 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-29 22:21:30 +0000
commit583777607e4f217542de15ac0fb2d8927f7af2c1 (patch)
treecbf58cec20344d46dca9e951de36d1e6d47ac23f /gcc/config
parentde4eff307cf50b8b4fccfcbc4cfaac5ab3893912 (diff)
downloadppe42-gcc-583777607e4f217542de15ac0fb2d8927f7af2c1.tar.gz
ppe42-gcc-583777607e4f217542de15ac0fb2d8927f7af2c1.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189085 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/gnu-user64.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/i386/gnu-user64.h b/gcc/config/i386/gnu-user64.h
index 0e66d26169b..29413326cf8 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")
OpenPOWER on IntegriCloud