[PATCH][check_GNU_style.sh] More aggressively ignore dg-xxx directives

Kyrill Tkachov kyrylo.tkachov@foss.arm.com
Tue Oct 11 10:47:00 GMT 2016


Hi all,

check_GNU_style.sh complains a lot about dg-* directives in the testsuite and in particular about line lengths.
There's nothing we can do about the directives and sometimes they're supposed to be long, in particular the scan-assembler
checks in dg-final.  Currently check_GNU_style.sh has code to avoid warning for dg-* directives but it's too weak, it doesn't
catch dg-final or dg-options directives.
This patch makes the code ignore all "{ dg-.*" lines for length purposes.
This eliminates a lot of false positives in my patches and didn't filter any legitimate warnings in my patches.

Ok for trunk?

Thanks,
Kyrill

2016-10-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * check_GNU_style.sh (col): Ignore dg-XXX directives for line length
     complaints.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_GNU.patch
Type: text/x-patch
Size: 708 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161011/d327d7bb/attachment.bin>


More information about the Gcc-patches mailing list