From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24173 invoked by alias); 24 Nov 2001 20:36:39 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23877 invoked from network); 24 Nov 2001 20:35:22 -0000 Received: from unknown (HELO gremlin.ics.uci.edu) (128.195.1.70) by sourceware.cygnus.com with SMTP; 24 Nov 2001 20:35:22 -0000 Received: from vino.ics.uci.edu ( vino.ics.uci.edu [128.195.11.198] ) by gremlin-relay.ics.uci.edu id aa09546 for ; 24 Nov 2001 12:35 PST To: gdb@sources.redhat.com Subject: BYTE_BITFIELD in symtab.h From: Dan Nicolaescu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 11 Nov 2001 21:40:00 -0000 Message-ID: <200111241235.aa09546@gremlin-relay.ics.uci.edu> X-SW-Source: 2001-11/txt/msg00122.txt.bz2 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?