This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: 6.1: Fix gcc 3.5.0 failure in sim
- From: cgd at broadcom dot com
- To: macro at ds2 dot pg dot gda dot pl
- Cc: gdb-patches at sources dot redhat dot com
- Date: 19 Apr 2004 14:02:37 -0700
- Subject: Re: 6.1: Fix gcc 3.5.0 failure in sim
- References: <Pine.LNX.4.55.0404192249530.18710@jurand.ds.pg.gda.pl><mailpost.1082408135.5083@news-sj1-1>
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 <macro@ds2.pg.gda.pl>
>
> * 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