[PATCH] Use 3 bits for type in bfd_link_hash_entry
H.J. Lu
hjl.tools@gmail.com
Mon Sep 11 14:37:00 GMT 2017
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.
More information about the Binutils
mailing list