[PATCH 2/3] Add DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION
H.J. Lu
hjl.tools@gmail.com
Fri Jun 1 16:51:00 GMT 2018
On Fri, Jun 1, 2018 at 3:19 AM, Alan Modra <amodra@gmail.com> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION.patch
Type: text/x-patch
Size: 2799 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20180601/8f7fad95/attachment.bin>
More information about the Gdb-patches
mailing list