From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21385 invoked by alias); 19 Apr 2004 21:02:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21378 invoked from network); 19 Apr 2004 21:02:52 -0000 Received: from unknown (HELO mms1.broadcom.com) (63.70.210.58) by sources.redhat.com with SMTP; 19 Apr 2004 21:02:52 -0000 Received: from 63.70.210.1 by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (MMS v5.6.0)); Mon, 19 Apr 2004 14:03:02 -0700 X-Server-Uuid: 97B92932-364A-4474-92D6-5CFE9C59AD14 Received: from mail-sj1-5.sj.broadcom.com (mail-sj1-5.sj.broadcom.com [10.16.128.236]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id OAA17093; Mon, 19 Apr 2004 14:02:04 -0700 (PDT) Received: from ldt-sj3-010.sj.broadcom.com (ldt-sj3-010 [10.21.64.10]) by mail-sj1-5.sj.broadcom.com (8.12.9/8.12.9/SSF) with ESMTP id i3JL2bov005650; Mon, 19 Apr 2004 14:02:37 -0700 (PDT) Received: (from cgd@localhost) by ldt-sj3-010.sj.broadcom.com ( 8.11.6/8.9.3) id i3JL2b002028; Mon, 19 Apr 2004 14:02:37 -0700 X-Authentication-Warning: ldt-sj3-010.sj.broadcom.com: cgd set sender to cgd@broadcom.com using -f To: macro@ds2.pg.gda.pl cc: gdb-patches@sources.redhat.com Subject: Re: 6.1: Fix gcc 3.5.0 failure in sim References: From: cgd@broadcom.com Date: Mon, 19 Apr 2004 21:02:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 X-WSS-ID: 6C9AE10C1LG1719762-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00451.txt.bz2 At Mon, 19 Apr 2004 20:55:35 +0000 (UTC), "Maciej W. Rozycki" wrote: > Building sim for mipsel-linux fails with gcc 3.5.0 with an "invalid > lvalue in assignment" error. Here's a fix. Did you test the simulator in any way, once you'd made this change? (I wouldn't expect a difference, but it's important to know what you tested, if anything.) cgd > 2004-04-19 Maciej W. Rozycki > > * mips/sim-main.h (COP0_BADVADDR): Remove a cast. > > Please apply. > > Maciej > > -- > + Maciej W. Rozycki, Technical University of Gdansk, Poland + > +--------------------------------------------------------------+ > + e-mail: macro@ds2.pg.gda.pl, PGP key available + > > gdb-6.1-sim-gcc3.patch > diff -up --recursive --new-file gdb-6.1.macro/sim/mips/sim-main.h gdb-6.1/sim/mips/sim-main.h > --- gdb-6.1.macro/sim/mips/sim-main.h 2003-01-05 07:56:59.000000000 +0000 > +++ gdb-6.1/sim/mips/sim-main.h 2004-04-15 06:53:58.000000000 +0000 > @@ -383,7 +383,7 @@ struct _sim_cpu { > #define NR_COP0_GPR 32 > unsigned_word cop0_gpr[NR_COP0_GPR]; > #define COP0_GPR ((CPU)->cop0_gpr) > -#define COP0_BADVADDR ((unsigned32)(COP0_GPR[8])) > +#define COP0_BADVADDR (COP0_GPR[8]) > > /* While space is allocated for the floating point registers in the > main registers array, they are stored separatly. This is because