]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
make frag fr_type a bitfield
authorAlan Modra <amodra@gmail.com>
Tue, 2 Sep 2025 12:38:29 +0000 (22:08 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 3 Sep 2025 01:00:47 +0000 (10:30 +0930)
For better packing of struct frag.

* frags.h (struct frag <fr_type>): Use ENUM_BITFIELD.

gas/frags.h

index c2fea09a8f6e6661873141f724101ef19242b05c..ac245b4c9519231fd7e39c5d145ad2f886a05649 100644 (file)
@@ -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