Make demangled_name_entry::language not a bitfield

Having it as a bitfield causes extra work, and this is not memory-sensitive.
Furthermore, once https://sourceware.org/ml/gdb-patches/2019-10/msg00812.html
lands, the bitfield won't even save any memory at all.

gdb/ChangeLog:

2019-10-22  Christian Biesinger  <cbiesinger@google.com>

	* symtab.c (struct demangled_name_entry) <language>: Change from
	bitfield to regular variable.

Change-Id: I4ea31d1cfcbe0f09a09bd058cd304862308dc388
This commit is contained in:
Christian Biesinger 2019-10-22 14:58:45 -05:00
parent 3a49427939
commit 403772ef61
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-10-22 Christian Biesinger <cbiesinger@google.com>
* symtab.c (struct demangled_name_entry) <language>: Change from
bitfield to regular variable.
2019-10-22 Christian Biesinger <cbiesinger@google.com>
* symtab.c (struct demangled_name_entry): Add a constructor.

View File

@ -719,7 +719,7 @@ struct demangled_name_entry
: mangled (mangled_name) {}
gdb::string_view mangled;
ENUM_BITFIELD(language) language : LANGUAGE_BITS;
enum language language;
char demangled[1];
};