[PATCH] Remove some hardcoded bitfield sizes
Doug Evans
xdje42@gmail.com
Sun Aug 16 13:57:00 GMT 2015
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.
More information about the Gdb-patches
mailing list