aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2001-12-10 06:19:51 +0000
committerFred Fish <fnf@specifix.com>2001-12-10 06:19:51 +0000
commit34a2fedd5a31e78b736af18d7936458eabf7e71b (patch)
tree84aeef33d8a5c9aa88784b755931ce4c808a670d /gdb/gdbtypes.c
parentaa468c6030d2452404ac88b0a707c07b5ce41b1b (diff)
downloadfsf-binutils-gdb-34a2fedd5a31e78b736af18d7936458eabf7e71b.zip
fsf-binutils-gdb-34a2fedd5a31e78b736af18d7936458eabf7e71b.tar.gz
fsf-binutils-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/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c3
1 files changed, 1 insertions, 2 deletions
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,