Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Subject: [PATCH 7/7] Remove char-based bitfield macros
Date: Thu, 21 Sep 2023 12:01:34 -0600	[thread overview]
Message-ID: <20230921-field-bits-v1-7-201285360900@adacore.com> (raw)
In-Reply-To: <20230921-field-bits-v1-0-201285360900@adacore.com>

This removes the char-based bitfield macros from gdbtypes.h, as they
are no longer used.
---
 gdb/gdbtypes.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 31745f28156..e797455dde0 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -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.  */
 

-- 
2.40.1


      parent reply	other threads:[~2023-09-21 18:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21 18:01 [PATCH 0/7] " Tom Tromey via Gdb-patches
2023-09-21 18:01 ` [PATCH 1/7] Use .def file to stringify type codes Tom Tromey via Gdb-patches
2023-09-25 21:58   ` Lancelot SIX via Gdb-patches
2023-09-26 13:10     ` Tom Tromey via Gdb-patches
2023-09-21 18:01 ` [PATCH 2/7] Print field accessibility inline Tom Tromey via Gdb-patches
2023-09-21 18:01 ` [PATCH 3/7] Remove byte vectors from cplus_struct_type Tom Tromey via Gdb-patches
2023-09-25 22:32   ` Lancelot SIX via Gdb-patches
2023-10-27 14:20     ` Tom Tromey
2023-09-21 18:01 ` [PATCH 4/7] Add field::is_public Tom Tromey via Gdb-patches
2023-09-21 18:01 ` [PATCH 5/7] Remove some QUIT calls from need_access_label_p Tom Tromey via Gdb-patches
2023-09-21 18:01 ` [PATCH 6/7] Remove some type field accessor macros Tom Tromey via Gdb-patches
2023-09-21 18:01 ` Tom Tromey via Gdb-patches [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230921-field-bits-v1-7-201285360900@adacore.com \
    --to=gdb-patches@sourceware.org \
    --cc=tromey@adacore.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox