On Fri, Jun 1, 2018 at 3:19 AM, Alan Modra wrote: > 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. > The bug is in GCC 8.1 and will be fixed in GCC 8.2. Here is the updated patch with +# if __GNUC__ == 8 && __GNUC_MINOR__ < 2 +# define DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION \ + DIAGNOSTIC_IGNORE ("-Wstringop-truncation") +# endif OK for master? -- H.J.