From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14400 invoked by alias); 18 Nov 2001 04:21:00 -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 14272 invoked from network); 18 Nov 2001 04:20:51 -0000 Received: from unknown (HELO fishpond.ninemoons.com) (64.232.230.104) by sourceware.cygnus.com with SMTP; 18 Nov 2001 04:20:51 -0000 Received: (from fnf@localhost) by fishpond.ninemoons.com (8.11.6/8.11.6) id fAI4HtH30179; Sat, 17 Nov 2001 21:17:55 -0700 From: Fred Fish Message-Id: <200111180417.fAI4HtH30179@fishpond.ninemoons.com> Subject: [RFA] patch for mips gdb build failure with latest gcc To: gdb-patches@sources.redhat.com Date: Wed, 07 Nov 2001 10:37:00 -0000 Cc: fnf@ninemoons.com Reply-To: fnf@ninemoons.com X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00109.txt.bz2 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. Index: sim-main.h =================================================================== RCS file: /cvs/src/src/sim/mips/sim-main.h,v retrieving revision 1.6 diff -u -p -r1.6 sim-main.h --- sim-main.h 2001/04/12 14:53:20 1.6 +++ sim-main.h 2001/11/18 04:16:54 @@ -297,6 +297,13 @@ do { \ } while (0) +enum float_operation + { + FLOP_ADD, FLOP_SUB, FLOP_MUL, FLOP_MADD, + FLOP_MSUB, FLOP_MAX=10, FLOP_MIN, FLOP_ABS, + FLOP_ITOF0=14, FLOP_FTOI0=18, FLOP_NEG=23 + }; + struct _sim_cpu { @@ -361,13 +368,6 @@ struct _sim_cpu { #endif - -enum float_operation - { - FLOP_ADD, FLOP_SUB, FLOP_MUL, FLOP_MADD, - FLOP_MSUB, FLOP_MAX=10, FLOP_MIN, FLOP_ABS, - FLOP_ITOF0=14, FLOP_FTOI0=18, FLOP_NEG=23 - }; /* To keep this default simulator simple, and fast, we use a direct vector of registers. The internal simulator engine then uses