Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Dan Nicolaescu <dann@godzilla.ICS.UCI.EDU>
To: gdb@sources.redhat.com
Subject: BYTE_BITFIELD in symtab.h
Date: Sun, 11 Nov 2001 21:40:00 -0000	[thread overview]
Message-ID: <200111241235.aa09546@gremlin-relay.ics.uci.edu> (raw)

Hi!

Is the following thing in symtab.h realy useful?


/* Don't do this; it means that if some .o's are compiled with GNU C
   and some are not (easy to do accidentally the way we configure
   things; also it is a pain to have to "make clean" every time you
   want to switch compilers), then GDB dies a horrible death.  */
/* GNU C supports enums that are bitfields.  Some compilers don't. */
#if 0 && defined(__GNUC__) && !defined(BYTE_BITFIELD)
#define BYTE_BITFIELD   :8;
#else
#define BYTE_BITFIELD           /*nothing */
#endif

if BYTE_BITFIELD was defined to :8 the size of
 "struct general_symbol_info" would decrease from 24 bytes to 20 bytes
for a tipical 32 bit machine. 
And gdb uses quite a few of those...

Isn't the price payed for being able to switch compilers too high in
this case? 
How common are compilers that don't support enum bitfields? 


             reply	other threads:[~2001-11-24 20:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-11 21:40 Dan Nicolaescu [this message]
2001-11-27 23:08 ` Andrew Cagney
2001-11-18 23:08   ` Andrew Cagney
2001-11-22  5:12   ` Dan Nicolaescu
2001-11-28 14:56     ` Dan Nicolaescu

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=200111241235.aa09546@gremlin-relay.ics.uci.edu \
    --to=dann@godzilla.ics.uci.edu \
    --cc=gdb@sources.redhat.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