From: H.J. Lu Date: Fri, 29 Jun 2012 22:21:30 +0000 (+0000) Subject: Use int for WCHAR_TYPE only for TARGET_LP64 X-Git-Tag: upstream/12.2.0~75500 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc7267351ebc216085566a216e68f398ba63c2a9;p=platform%2Fupstream%2Fgcc.git 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 --- 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 + + PR target/53539 + * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for + TARGET_LP64. + 2012-06-29 Sterling Augustine * 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")