This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Use 3 bits for type in bfd_link_hash_entry
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Fri, 8 Sep 2017 08:49:10 -0700
- Subject: [PATCH] Use 3 bits for type in bfd_link_hash_entry
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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