This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Use 3 bits for type in bfd_link_hash_entry
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Mon, 11 Sep 2017 07:37:27 -0700
- Subject: Re: [PATCH] Use 3 bits for type in bfd_link_hash_entry
- Authentication-results: sourceware.org; auth=none
- References: <20170908154910.GA32008@gmail.com>
On Fri, Sep 8, 2017 at 8:49 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Since enum bfd_link_hash_type has 8 values, 3 bits are sufficient for
> the type field in bfd_link_hash_entry.
>
> OK for master?
>
> H.J.
> ---
> * bfdlink.h (bfd_link_hash_entry): Use 3 bits, instead of 8
> bits, for the type field.
> ---
> include/bfdlink.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/bfdlink.h b/include/bfdlink.h
> index 2370c0d45a..aa8750888d 100644
> --- a/include/bfdlink.h
> +++ b/include/bfdlink.h
> @@ -98,7 +98,7 @@ struct bfd_link_hash_entry
> struct bfd_hash_entry root;
>
> /* Type of this entry. */
> - ENUM_BITFIELD (bfd_link_hash_type) type : 8;
> + ENUM_BITFIELD (bfd_link_hash_type) type : 3;
>
> /* Symbol is referenced in a normal regular object file,
> as distinct from a LTO IR object file. */
> --
> 2.13.5
>
Any comments or objections?
--
H.J.