On 23 February 2016 at 16:14, Richard Henderson <r...@twiddle.net> wrote:
> On 02/15/2016 05:04 AM, Peter Maydell wrote:
>> This failed to build on the i686-w64-mingw32 compiler
>> ("i686-w64-mingw32-gcc (GCC) 4.8.2", from the Ubuntu
>> gcc-mingw-w64-i686 package version 4.8.2-10ubuntu2+12):
>>
>> target-sparc/translate.c: In function ‘gen_intermediate_code’:
>> target-sparc/translate.c:299:24: error: array subscript is above array
>> bounds [-Werror=array-bounds]
>>          return cpu_regs[reg];
>>                         ^
>>
>> Fiddling around with the source file to see which call to
>> gen_dest_gpr() is provoking this shows that it's the one
>> in gen_ldda_asi() at line 2157 -- if I change the second
>> argument from 'rd + 1' to 'rd' it compiles OK.
>
> Does it also work to change to "rd | 1"?

Yes, that seems to work too.

thanks
-- PMM

Reply via email to