aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index d35161a..b8a4fdd 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2000-12-29 Jakub Jelinek <jakub@redhat.com>
+
+ * decl.c (init_decl_processing): Fix sign of wchar_type_node.
+
2000-12-29 Mark Mitchell <mark@codesourcery.com>
* class.c (pushclass): Remove #if 0'd code.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index a07f6a9..93dd50b 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -6532,9 +6532,9 @@ init_decl_processing ()
wchar_type_node = TREE_TYPE (IDENTIFIER_GLOBAL_VALUE (wchar_type_node));
wchar_type_size = TYPE_PRECISION (wchar_type_node);
if (TREE_UNSIGNED (wchar_type_node))
- wchar_type_node = make_signed_type (wchar_type_size);
- else
wchar_type_node = make_unsigned_type (wchar_type_size);
+ else
+ wchar_type_node = make_signed_type (wchar_type_size);
record_builtin_type (RID_WCHAR, "wchar_t", wchar_type_node);
/* This is for wide string constants. */