diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-12-29 15:43:24 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2000-12-29 15:43:24 +0100 |
commit | 77f5250d6fe948fbae378415a999059f544d30b8 (patch) | |
tree | e024ded79e561be74fd3a1511424d827478e2543 | |
parent | c2fd66f48e9aa9011f67f17b762a39d62d174c36 (diff) | |
download | gcc-77f5250d6fe948fbae378415a999059f544d30b8.zip gcc-77f5250d6fe948fbae378415a999059f544d30b8.tar.gz gcc-77f5250d6fe948fbae378415a999059f544d30b8.tar.bz2 |
* decl.c (init_decl_processing): Fix sign of wchar_type_node.
From-SVN: r38537
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 4 |
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. */ |