From: dje Date: Tue, 26 Mar 2002 20:13:45 +0000 (+0000) Subject: * config/rs6000/aix51.h (WCHAR_TYPE): Define. X-Git-Tag: upstream/4.9.2~87733 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7d623003d08b5eb0cd11976d5fe6be0a10bcb3d;p=platform%2Fupstream%2Flinaro-gcc.git * config/rs6000/aix51.h (WCHAR_TYPE): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51402 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4054887..90b3bab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-03-26 David Edelsohn + + * config/rs6000/aix51.h (WCHAR_TYPE): Define. + 2002-03-26 Bob Wilson * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types. diff --git a/gcc/config/rs6000/aix51.h b/gcc/config/rs6000/aix51.h index 8dc0b86b..121c7ba 100644 --- a/gcc/config/rs6000/aix51.h +++ b/gcc/config/rs6000/aix51.h @@ -209,10 +209,13 @@ do { \ /* __WCHAR_TYPE__ is dynamic, so do not define it statically. */ #define NO_BUILTIN_WCHAR_TYPE -#undef WCHAR_TYPE -#undef WCHAR_TYPE_SIZE + +/* Type used for wchar_t, as a string used in a declaration. */ +#undef WCHAR_TYPE +#define WCHAR_TYPE (!TARGET_64BIT ? "short unsigned int" : "unsigned int") /* Width of wchar_t in bits. */ +#undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE (!TARGET_64BIT ? 16 : 32) #define MAX_WCHAR_TYPE_SIZE 32