From: Fred Fish Date: Sun, 9 Dec 2001 07:32:21 +0000 (+0000) Subject: Approved by Jim Blandy: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6edc140fcf4ac600f32a7ab7c290797d9943dc6b;p=binutils-gdb.git Approved by Jim Blandy: 2001-12-08 Fred Fish * c-lang.c (c_create_fundamental_type): For FT_CHAR, pass TYPE_FLAG_NOSIGN to init_type() rather than setting it after the type is created. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b2767418945..c055333f68d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-12-08 Fred Fish + + * c-lang.c (c_create_fundamental_type): For FT_CHAR, pass + TYPE_FLAG_NOSIGN to init_type() rather than setting it after the + type is created. + 2001-12-08 Fred Fish * dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here. diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 818125f8b00..101405c73cd 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -240,13 +240,11 @@ c_create_fundamental_type (struct objfile *objfile, int typeid) type = init_type (TYPE_CODE_BOOL, TARGET_CHAR_BIT / TARGET_CHAR_BIT, 0, "bool", objfile); - break; case FT_CHAR: type = init_type (TYPE_CODE_INT, TARGET_CHAR_BIT / TARGET_CHAR_BIT, - 0, "char", objfile); - TYPE_FLAGS (type) |= TYPE_FLAG_NOSIGN; + TYPE_FLAG_NOSIGN, "char", objfile); break; case FT_SIGNED_CHAR: type = init_type (TYPE_CODE_INT, @@ -337,7 +335,6 @@ c_create_fundamental_type (struct objfile *objfile, int typeid) type = init_type (TYPE_CODE_TEMPLATE_ARG, 0, 0, "