This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 2/3] Add DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION
- From: Alan Modra <amodra at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Fri, 1 Jun 2018 19:49:49 +0930
- Subject: Re: [PATCH 2/3] Add DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION
- References: <20180521121557.16535-1-hjl.tools@gmail.com> <20180521121557.16535-2-hjl.tools@gmail.com> <cde62c28-7b85-41dc-a14c-bde8d677f06e@redhat.com>
On Fri, Jun 01, 2018 at 08:57:20AM +0100, Nick Clifton wrote:
> Hi H.J.
>
> > +# if __GNUC__ >= 8
> > +# define DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION \
> > + DIAGNOSTIC_IGNORE ("-Wstringop-truncation")
> > +# endif
> > +#endif
>
> Presumably the Wstringop-truncation bug will be fixed in gcc 8.1
> so shouldn't the test check the revision number as well ?
Yes, it has already been fixed.
--
Alan Modra
Australia Development Lab, IBM