From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11131 invoked by alias); 19 Dec 2007 13:26:05 -0000 Received: (qmail 11107 invoked by uid 22791); 19 Dec 2007 13:26:04 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 19 Dec 2007 13:25:58 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 3EBED2A9674 for ; Wed, 19 Dec 2007 08:25:56 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ur4ESaJQI9T9 for ; Wed, 19 Dec 2007 08:25:56 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 4D6CB2A9668 for ; Wed, 19 Dec 2007 08:25:55 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 01F27E7ACA; Wed, 19 Dec 2007 17:25:47 +0400 (RET) Date: Wed, 19 Dec 2007 13:30:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [commit] remove opaque enum declaration in symtab.h Message-ID: <20071219132546.GC6154@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="IpbVkmxF4tDyP/Kb" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00299.txt.bz2 --IpbVkmxF4tDyP/Kb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 459 This fixes the only other instance I could find of the use of an opaque enum declaration. The enum type is defined inside defs.h, so I simply included this file, and removed the enum declaration. 2007-12-19 Joel Brobecker * symtab.h: #include "defs.h". (enum language): Remove opaque declaration. * Makefile.in (symtab_h): Update dependencies. Tested on x86-linux by rebuilding GDB. Checked in. -- Joel --IpbVkmxF4tDyP/Kb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="symtab.h.diff" Content-length: 1217 Index: symtab.h =================================================================== RCS file: /cvs/src/src/gdb/symtab.h,v retrieving revision 1.108 diff -u -p -r1.108 symtab.h --- symtab.h 19 Oct 2007 12:26:34 -0000 1.108 +++ symtab.h 19 Dec 2007 13:16:54 -0000 @@ -22,6 +22,8 @@ #if !defined (SYMTAB_H) #define SYMTAB_H 1 +#include "defs.h" + /* Opaque declarations. */ struct ui_file; struct frame_info; @@ -32,7 +34,6 @@ struct block; struct blockvector; struct axs_value; struct agent_expr; -enum language; /* Some of the structures in this file are space critical. The space-critical structures are: Index: Makefile.in =================================================================== RCS file: /cvs/src/src/gdb/Makefile.in,v retrieving revision 1.966 diff -u -p -r1.966 Makefile.in --- Makefile.in 17 Dec 2007 17:49:28 -0000 1.966 +++ Makefile.in 19 Dec 2007 13:17:07 -0000 @@ -885,7 +885,7 @@ srec_h = srec.h stabsread_h = stabsread.h stack_h = stack.h symfile_h = symfile.h $(symtab_h) -symtab_h = symtab.h +symtab_h = symtab.h $(defs_h) target_h = target.h $(bfd_h) $(symtab_h) $(dcache_h) $(memattr_h) $(vec_h) target_descriptions_h = target-descriptions.h terminal_h = terminal.h --IpbVkmxF4tDyP/Kb--