* RFA: another tweak to an init_types() call
@ 2001-12-09 10:13 Fred Fish
2001-12-09 19:07 ` Jim Blandy
0 siblings, 1 reply; 2+ messages in thread
From: Fred Fish @ 2001-12-09 10:13 UTC (permalink / raw)
To: gdb-patches; +Cc: fnf
The build_gdbtypes() function in gdbtypes.c has another instance of
where init_type() is called with empty flag bits and then a flag bit
is set on the newly created type. This patch fixes it, like in the
similar c-lang.c patch approved and applied yesterday.
-Fred
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.
Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.29
diff -u -p -r1.29 gdbtypes.c
--- gdbtypes.c 2001/12/07 22:11:51 1.29
+++ gdbtypes.c 2001/12/09 18:07:25
@@ -2939,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,
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: RFA: another tweak to an init_types() call
2001-12-09 10:13 RFA: another tweak to an init_types() call Fred Fish
@ 2001-12-09 19:07 ` Jim Blandy
0 siblings, 0 replies; 2+ messages in thread
From: Jim Blandy @ 2001-12-09 19:07 UTC (permalink / raw)
To: fnf; +Cc: gdb-patches
Approved.
Fred Fish <fnf@ns1.ninemoons.com> writes:
>
> The build_gdbtypes() function in gdbtypes.c has another instance of
> where init_type() is called with empty flag bits and then a flag bit
> is set on the newly created type. This patch fixes it, like in the
> similar c-lang.c patch approved and applied yesterday.
>
> -Fred
>
>
> 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.
>
> Index: gdbtypes.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbtypes.c,v
> retrieving revision 1.29
> diff -u -p -r1.29 gdbtypes.c
> --- gdbtypes.c 2001/12/07 22:11:51 1.29
> +++ gdbtypes.c 2001/12/09 18:07:25
> @@ -2939,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,
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-10 3:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-09 10:13 RFA: another tweak to an init_types() call Fred Fish
2001-12-09 19:07 ` Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox