From owner-freebsd-current@FreeBSD.ORG Wed Jul 11 04:16:41 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DE59106566C; Wed, 11 Jul 2012 04:16:41 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id 2BCEC8FC08; Wed, 11 Jul 2012 04:16:41 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id q6B4GYtx003707; Tue, 10 Jul 2012 21:16:34 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id q6B4GYZ9003706; Tue, 10 Jul 2012 21:16:34 -0700 (PDT) (envelope-from sgk) Date: Tue, 10 Jul 2012 21:16:34 -0700 From: Steve Kargl To: Pedro Giffuni Message-ID: <20120711041634.GA3697@troutmask.apl.washington.edu> References: <4FFCF5F8.6060104@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FFCF5F8.6060104@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: [CFT] Add -Wbounded to gcc 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: Wed, 11 Jul 2012 04:16:41 -0000 On Tue, Jul 10, 2012 at 10:41:44PM -0500, Pedro Giffuni wrote: > > I have a patch from OpenBSD that adds -Wbounded to gcc: > > http://people.freebsd.org/~pfg/patches/patch-gcc-bounded > > Unfortunately it breaks world, or at least binutils, at this time: > > _________ > ... > cc1: warnings being treated as errors > peigen.c: In function '_bfd_pei_swap_aux_in': > peigen.c:241: warning: array size (14) smaller than bound length (18) > peigen.c:241: warning: array size (14) smaller than bound length (18) > peigen.c: In function '_bfd_pei_swap_aux_out': > peigen.c:314: warning: array size (14) smaller than bound length (18) > peigen.c:314: warning: array size (14) smaller than bound length (18) > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/binutils/libbfd. > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/binutils. > ___________ > > OpenBSD has a fix but before attempting to clean this, and whatever > else would break, I can't help but ask: is it worth it? > IMHO, no. -- Steve