Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2012 21:16:34 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Pedro Giffuni <pfg@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [CFT] Add -Wbounded to gcc
Message-ID:  <20120711041634.GA3697@troutmask.apl.washington.edu>
In-Reply-To: <4FFCF5F8.6060104@FreeBSD.org>
References:  <4FFCF5F8.6060104@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120711041634.GA3697>