make frag fr_type a bitfield
Alan Modra
amodra@gmail.com
Wed Sep 3 05:33:16 GMT 2025
For better packing of struct frag.
* frags.h (struct frag <fr_type>): Use ENUM_BITFIELD.
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
--
Alan Modra
More information about the Binutils
mailing list