This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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] Use 3 bits for type in bfd_link_hash_entry


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.


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