From: "Doug Evans" <dje@google.com>
To: "GDB Patches" <gdb-patches@sourceware.org>
Subject: [RFA] small size reduction to struct die_info
Date: Sun, 14 Sep 2008 01:26:00 -0000 [thread overview]
Message-ID: <e394668d0809131825k7c51a330uac68e19e25882cf1@mail.gmail.com> (raw)
This reduces the size of struct die_info for 32 bit hosts.
Ok to check in?
2008-09-13 Doug Evans <dje@sebabeach.org>
* dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.281
diff -u -p -r1.281 dwarf2read.c
--- dwarf2read.c 13 Sep 2008 22:19:50 -0000 1.281
+++ dwarf2read.c 14 Sep 2008 01:22:52 -0000
@@ -536,10 +536,17 @@ struct attribute
/* This data structure holds a complete die structure. */
struct die_info
{
- enum dwarf_tag tag; /* Tag indicating type of die */
- unsigned int abbrev; /* Abbrev number */
- unsigned int offset; /* Offset in .debug_info section */
- unsigned int num_attrs; /* Number of attributes */
+ /* DWARF-2 tag for this DIE. */
+ ENUM_BITFIELD(dwarf_tag) tag : 16;
+
+ /* Number of attributes */
+ unsigned int num_attrs : 16;
+
+ /* Abbrev number */
+ unsigned int abbrev;
+
+ /* Offset in .debug_info section */
+ unsigned int offset;
/* The dies in a compilation unit form an n-ary tree. PARENT
points to this die's parent; CHILD points to the first child of
next reply other threads:[~2008-09-14 1:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-14 1:26 Doug Evans [this message]
2008-09-14 2:22 ` Daniel Jacobowitz
2008-09-15 2:50 ` Doug Evans
2008-09-15 3:19 ` Daniel Jacobowitz
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=e394668d0809131825k7c51a330uac68e19e25882cf1@mail.gmail.com \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
/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