Re: array index of '-16' indexes before the beginning of the array

2011-11-28 Thread Andriy Gapon
on 28/11/2011 02:59 Ryan Stone said the following: > On Sun, Nov 27, 2011 at 6:42 PM, Andriy Gapon wrote: >> >> Looks like clang has found a real issue here: >> /usr/src/sys/x86/x86/local_apic.c:311:2: warning: array index of '-16' >> indexes >> before

Re: array index of '-16' indexes before the beginning of the array

2011-11-27 Thread Ryan Stone
On Sun, Nov 27, 2011 at 6:42 PM, Andriy Gapon wrote: > > Looks like clang has found a real issue here: > /usr/src/sys/x86/x86/local_apic.c:311:2: warning: array index of '-16' indexes > before the beginning of the array [-Warray-bounds] >        lapics[apic_id].la_

Re: array index of '-16' indexes before the beginning of the array

2011-11-27 Thread Ryan Stone
On Sun, Nov 27, 2011 at 6:42 PM, Andriy Gapon wrote: > > Looks like clang has found a real issue here: > /usr/src/sys/x86/x86/local_apic.c:311:2: warning: array index of '-16' indexes > before the beginning of the array [-Warray-bounds] >        lapics[apic_id].la_

array index of '-16' indexes before the beginning of the array

2011-11-27 Thread Andriy Gapon
Looks like clang has found a real issue here: /usr/src/sys/x86/x86/local_apic.c:311:2: warning: array index of '-16' indexes before the beginning of the array [-Warray-bounds] lapics[apic_id].la_ioint_irqs[IDT_DTRACE_RET - APIC_IO_INTS] = IRQ_DTRACE_RET; IDT_DTRACE_RET (0x