From 3cc62a954ad121e80eb3942d4937cf0e987dde4c Mon Sep 17 00:00:00 2001 From: fnf Date: Mon, 10 Dec 2001 06:19:50 +0000 Subject: [PATCH] Approved by Jim Blandy: 2001-12-09 Fred Fish * gdbtypes.c (build_gdbtypes): For builtin_type_char, pass TYPE_FLAG_NOSIGN to init_type() rather than setting it after the type is created. --- gdb/ChangeLog | 6 ++++++ gdb/gdbtypes.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 526d2532d4..473c0e3402 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2001-12-09 Fred Fish + * 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 + * 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 9533903d45..9309495fe6 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, -- 2.11.0