Approved by Jim Blandy:
authorFred Fish <fnf@specifix.com>
Mon, 10 Dec 2001 06:19:51 +0000 (06:19 +0000)
committerFred Fish <fnf@specifix.com>
Mon, 10 Dec 2001 06:19:51 +0000 (06:19 +0000)
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.

gdb/ChangeLog
gdb/gdbtypes.c

index 526d2532d4d8bde3fad9239e9d65d6555c9dbb8e..473c0e34027f3c3ac44bdb5ed66cab6f61cdcdc2 100644 (file)
@@ -1,3 +1,9 @@
+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,
index 9533903d45897bbebdb4d710d351cf67caa60886..9309495fe6e16031d25755f1e8575157efb90c98 100644 (file)
@@ -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,