]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove char-based bitfield macros
authorTom Tromey <tromey@adacore.com>
Thu, 21 Sep 2023 16:40:10 +0000 (10:40 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 21 Nov 2023 21:52:05 +0000 (14:52 -0700)
This removes the char-based bitfield macros from gdbtypes.h, as they
are no longer used.

Acked-By: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/gdbtypes.h

index 76ea3f7e8eb8547ffaeda2d603d67d2e4c1aef5f..7d2e3d4cfce9209d4620424a45930832f94fda9f 100644 (file)
@@ -66,15 +66,6 @@ struct dwarf2_per_cu_data;
 struct dwarf2_per_objfile;
 struct dwarf2_property_baton;
 
-/* Some macros for char-based bitfields.  */
-
-#define B_SET(a,x)     ((a)[(x)>>3] |= (1 << ((x)&7)))
-#define B_CLR(a,x)     ((a)[(x)>>3] &= ~(1 << ((x)&7)))
-#define B_TST(a,x)     ((a)[(x)>>3] & (1 << ((x)&7)))
-#define B_TYPE         unsigned char
-#define        B_BYTES(x)      ( 1 + ((x)>>3) )
-#define        B_CLRALL(a,x)   memset ((a), 0, B_BYTES(x))
-
 /* * Different kinds of data types are distinguished by the `code'
    field.  */