[binutils-gdb] make frag fr_type a bitfield

Alan Modra amodra@sourceware.org
Wed Sep 3 05:37:56 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=11e5824cda9f8d94f6982124eb2c231dfab77bee

commit 11e5824cda9f8d94f6982124eb2c231dfab77bee
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Sep 2 22:08:29 2025 +0930

    make frag fr_type a bitfield
    
    For better packing of struct frag.
    
            * frags.h (struct frag <fr_type>): Use ENUM_BITFIELD.

Diff:
---
 gas/frags.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/frags.h b/gas/frags.h
index c2fea09a8f6..ac245b4c951 100644
--- a/gas/frags.h
+++ b/gas/frags.h
@@ -78,7 +78,7 @@ struct frag {
   unsigned int insn_addr:6;
 
   /* What state is my tail in? */
-  relax_stateT fr_type;
+  ENUM_BITFIELD (_relax_state) fr_type : 8;
   relax_substateT fr_subtype;
 
 #ifdef USING_CGEN


More information about the Binutils-cvs mailing list