This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove some hardcoded bitfield sizes


Doug Evans <xdje42@gmail.com> writes:
> Hi.
>
> This patch adds some macros to remove some hardcoded bitfield sizes.
> It also shrinks a few bit fields, freeing up some space for
> potential improvements.
>
> Regression tested on amd64-linux.
>
> 2015-07-22  Doug Evans  <xdje42@gmail.com>
>
> 	* defs.h (LANGUAGE_BITS): Define.
> 	* psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
> 	(partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
> 	* symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
> 	(minimal_symbol_type): Add nr_minsym_types.
> 	(MINSYM_TYPE_BITS): Define.
> 	(minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
> 	(domain_enum_tag): Add NR_DOMAINS.
> 	(SYMBOL_DOMAIN_BITS): Change from 4 to 3.
> 	(SYMBOL_ACLASS_BITS): Define from 6 to 5.

Committed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]