* config/rs6000/aix51.h (WCHAR_TYPE): Define.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Mar 2002 20:13:45 +0000 (20:13 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Mar 2002 20:13:45 +0000 (20:13 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51402 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/aix51.h

index 4054887..90b3bab 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-26  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/aix51.h (WCHAR_TYPE): Define.
+
 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
 
        * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
index 8dc0b86..121c7ba 100644 (file)
@@ -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