From owner-freebsd-current@FreeBSD.ORG Sun Nov 27 23:42:59 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE198106566B for ; Sun, 27 Nov 2011 23:42:59 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 20B718FC13 for ; Sun, 27 Nov 2011 23:42:58 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id BAA20491 for ; Mon, 28 Nov 2011 01:42:57 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RUoN6-000Kb0-V1 for freebsd-current@freebsd.org; Mon, 28 Nov 2011 01:42:56 +0200 Message-ID: <4ED2CAFF.7070608@FreeBSD.org> Date: Mon, 28 Nov 2011 01:42:55 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: FreeBSD current X-Enigmail-Version: undefined Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: Subject: array index of '-16' indexes before the beginning of the array X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2011 23:42:59 -0000 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 (0x20) indeed seems to be less than APIC_IO_INTS. -- Andriy Gapon