summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-26 20:13:45 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-26 20:13:45 +0000
commitc7d623003d08b5eb0cd11976d5fe6be0a10bcb3d (patch)
tree858e8763bc07210ffba3b04869456f205a08139f
parentdd52a1908e68df4088b184b027c12866b6727a9f (diff)
downloadppe42-gcc-c7d623003d08b5eb0cd11976d5fe6be0a10bcb3d.tar.gz
ppe42-gcc-c7d623003d08b5eb0cd11976d5fe6be0a10bcb3d.zip
* config/rs6000/aix51.h (WCHAR_TYPE): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51402 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/aix51.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4054887c870..90b3bab060e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/aix51.h b/gcc/config/rs6000/aix51.h
index 8dc0b86ba4f..121c7ba5caf 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
OpenPOWER on IntegriCloud