From 77f5250d6fe948fbae378415a999059f544d30b8 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 29 Dec 2000 15:43:24 +0100 Subject: * decl.c (init_decl_processing): Fix sign of wchar_type_node. From-SVN: r38537 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc') 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 + + * decl.c (init_decl_processing): Fix sign of wchar_type_node. + 2000-12-29 Mark Mitchell * 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. */ -- cgit v1.1