This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove some hardcoded bitfield sizes
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 15 Aug 2015 22:11:20 -0700
- Subject: Re: [PATCH] Remove some hardcoded bitfield sizes
- Authentication-results: sourceware.org; auth=none
- References: <m3vbdbzkl5 dot fsf at sspiff dot org>
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.