diff options
author | Fred Fish <fnf@specifix.com> | 2001-12-10 06:19:51 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2001-12-10 06:19:51 +0000 |
commit | 34a2fedd5a31e78b736af18d7936458eabf7e71b (patch) | |
tree | 84aeef33d8a5c9aa88784b755931ce4c808a670d /gdb | |
parent | aa468c6030d2452404ac88b0a707c07b5ce41b1b (diff) | |
download | gdb-34a2fedd5a31e78b736af18d7936458eabf7e71b.zip gdb-34a2fedd5a31e78b736af18d7936458eabf7e71b.tar.gz gdb-34a2fedd5a31e78b736af18d7936458eabf7e71b.tar.bz2 |
Approved by Jim Blandy:
2001-12-09 Fred Fish <fnf@redhat.com>
* gdbtypes.c (build_gdbtypes): For builtin_type_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/gdbtypes.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 526d253..473c0e3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2001-12-09 Fred Fish <fnf@redhat.com> + * gdbtypes.c (build_gdbtypes): For builtin_type_char, pass + TYPE_FLAG_NOSIGN to init_type() rather than setting it after the + type is created. + +2001-12-09 Fred Fish <fnf@redhat.com> + * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_CONST, TYPE_VOLATILE, TYPE_INCOMPLETE): Move macros that test the bits to location in file where the bits are defined. diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 9533903..9309495 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -2937,9 +2937,8 @@ build_gdbtypes (void) "void", (struct objfile *) NULL); builtin_type_char = init_type (TYPE_CODE_INT, TARGET_CHAR_BIT / TARGET_CHAR_BIT, - 0, + TYPE_FLAG_NOSIGN, "char", (struct objfile *) NULL); - TYPE_FLAGS (builtin_type_char) |= TYPE_FLAG_NOSIGN; builtin_type_true_char = init_type (TYPE_CODE_CHAR, TARGET_CHAR_BIT / TARGET_CHAR_BIT, 0, |