From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7463 invoked by alias); 18 Nov 2001 06:30:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7418 invoked from network); 18 Nov 2001 06:30:31 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sourceware.cygnus.com with SMTP; 18 Nov 2001 06:30:31 -0000 Received: from drow by nevyn.them.org with local (Exim 3.32 #1 (Debian)) id 165LTK-00014l-00; Sun, 18 Nov 2001 01:30:30 -0500 Date: Wed, 07 Nov 2001 11:31:00 -0000 From: Daniel Jacobowitz To: fnf@ninemoons.com Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] patch for mips gdb build failure with latest gcc Message-ID: <20011118013030.A4057@nevyn.them.org> Mail-Followup-To: fnf@ninemoons.com, gdb-patches@sources.redhat.com References: <200111180417.fAI4HtH30179@fishpond.ninemoons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200111180417.fAI4HtH30179@fishpond.ninemoons.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2001-11/txt/msg00113.txt.bz2 On Sat, Nov 17, 2001 at 09:17:55PM -0700, Fred Fish wrote: > Gdb for mips does not currently build with the latest gcc. The error > message is: > > In file included from support.c:26: > sim-main.h:370: unnamed fields of type other than struct or union are not allowed > > The problem is an enum declaration inside a struct declaration, which > is apparently now illegal. This patch fixes it. > > > 2001-11-17 Fred Fish > > * sim-main.h (float_operation): Move enum declaration outside > of _sim_cpu struct declaration. For the record, I'm pretty sure this is a bug in GCC, and I think it may have been fixed on the trunk. How recent is your "latest" GCC? -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer