mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 13:23:10 +08:00
Approved by Jim Blandy:
2001-12-08 Fred Fish <fnf@redhat.com> * c-lang.c (c_create_fundamental_type): For FT_CHAR, pass TYPE_FLAG_NOSIGN to init_type() rather than setting it after the type is created.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2001-12-08 Fred Fish <fnf@redhat.com>
|
||||||
|
|
||||||
|
* c-lang.c (c_create_fundamental_type): For FT_CHAR, pass
|
||||||
|
TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
|
||||||
|
type is created.
|
||||||
|
|
||||||
2001-12-08 Fred Fish <fnf@redhat.com>
|
2001-12-08 Fred Fish <fnf@redhat.com>
|
||||||
|
|
||||||
* dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
|
* dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
|
||||||
|
@ -240,13 +240,11 @@ c_create_fundamental_type (struct objfile *objfile, int typeid)
|
|||||||
type = init_type (TYPE_CODE_BOOL,
|
type = init_type (TYPE_CODE_BOOL,
|
||||||
TARGET_CHAR_BIT / TARGET_CHAR_BIT,
|
TARGET_CHAR_BIT / TARGET_CHAR_BIT,
|
||||||
0, "bool", objfile);
|
0, "bool", objfile);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case FT_CHAR:
|
case FT_CHAR:
|
||||||
type = init_type (TYPE_CODE_INT,
|
type = init_type (TYPE_CODE_INT,
|
||||||
TARGET_CHAR_BIT / TARGET_CHAR_BIT,
|
TARGET_CHAR_BIT / TARGET_CHAR_BIT,
|
||||||
0, "char", objfile);
|
TYPE_FLAG_NOSIGN, "char", objfile);
|
||||||
TYPE_FLAGS (type) |= TYPE_FLAG_NOSIGN;
|
|
||||||
break;
|
break;
|
||||||
case FT_SIGNED_CHAR:
|
case FT_SIGNED_CHAR:
|
||||||
type = init_type (TYPE_CODE_INT,
|
type = init_type (TYPE_CODE_INT,
|
||||||
@ -337,7 +335,6 @@ c_create_fundamental_type (struct objfile *objfile, int typeid)
|
|||||||
type = init_type (TYPE_CODE_TEMPLATE_ARG,
|
type = init_type (TYPE_CODE_TEMPLATE_ARG,
|
||||||
0,
|
0,
|
||||||
0, "<template arg>", objfile);
|
0, "<template arg>", objfile);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return (type);
|
return (type);
|
||||||
|
Reference in New Issue
Block a user