This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Silence gcc-8 warnings
On Mon, Apr 23, 2018 at 04:27:46PM +0200, Michael Matz wrote:
> Hi,
>
> On Mon, 23 Apr 2018, Alan Modra wrote:
>
> > Hi Michael,
> >
> > On Mon, Apr 23, 2018 at 03:42:02PM +0200, Michael Matz wrote:
> > > On Mon, 23 Apr 2018, Alan Modra wrote:
> > >
> > > > All of these warnings were false positives. -Wstringop-truncation is
> > > > particularly annoying when it warns about strncpy used quite correctly.
> > >
> > > Which version of gcc-8 were you using?
> >
> > r259533
>
> Hmm, curious, can't be my change then; anyway I'm glad it doesn't happen
> anymore (because yes, the new -Wstrinop-truncation warnings also brought
> headaches for distro builds :-/ )
Yeah, really curious. I failed to mention that gcc build was on
hppa-linux, whereas the one that didn't show any error was on
x86_64-linux. I have a little sleuthing to do to figure out what made
the difference. It doesn't seem likely that it was any of the more
recent gcc patches.
--
Alan Modra
Australia Development Lab, IBM