diff options
author | Fred Fish <fnf@specifix.com> | 2001-12-09 07:32:21 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2001-12-09 07:32:21 +0000 |
commit | 6edc140fcf4ac600f32a7ab7c290797d9943dc6b (patch) | |
tree | f6177f8b20e48df2c6f09d6c5bf4548cbc4d4053 /gdb | |
parent | 878ac5308a9a65e453ac6cff615092d88df836e3 (diff) | |
download | gdb-6edc140fcf4ac600f32a7ab7c290797d9943dc6b.zip gdb-6edc140fcf4ac600f32a7ab7c290797d9943dc6b.tar.gz gdb-6edc140fcf4ac600f32a7ab7c290797d9943dc6b.tar.bz2 |
Approved by Jim Blandy:
2001-12-08 Fred Fish <fnf@redhat.com>
* 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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/c-lang.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b276741..c055333 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2001-12-08 Fred Fish <fnf@redhat.com> + * 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 <fnf@redhat.com> + * dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here. * gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to not collide with other flag bits. diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 818125f..101405c 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, "<template arg>", objfile); - break; } return (type); |