Re: [Qemu-devel] [PATCH] linux-user: avoid gcc array overrun warning for sparc

2011-02-01 Thread Blue Swirl
On Tue, Feb 1, 2011 at 4:00 PM, Peter Maydell wrote: > On 1 February 2011 15:54, Peter Maydell wrote: >> --- a/linux-user/signal.c >> +++ b/linux-user/signal.c >> @@ -1817,9 +1817,10 @@ struct target_sigcontext { >>  /* A Sparc stack frame */ >>  struct sparc_stackf { >>         abi_ulong locals[

Re: [Qemu-devel] [PATCH] linux-user: avoid gcc array overrun warning for sparc

2011-02-01 Thread Peter Maydell
On 1 February 2011 15:54, Peter Maydell wrote: > --- a/linux-user/signal.c > +++ b/linux-user/signal.c > @@ -1817,9 +1817,10 @@ struct target_sigcontext { >  /* A Sparc stack frame */ >  struct sparc_stackf { >         abi_ulong locals[8]; > -        abi_ulong ins[6]; > -        struct sparc_stack

[Qemu-devel] [PATCH] linux-user: avoid gcc array overrun warning for sparc

2011-02-01 Thread Peter Maydell
Suppress a gcc array bounds overrun warning when filling in the SPARC signal frame by adjusting our definition of the structure so that the fp and callers_pc membes are part of the ins[] array rather than separate fields; since qemu has no need to access the fields individually there is no need to