common.opt: Add -Wattribute-warning.
authorNikolai Merinov <n.merinov@inango-systems.com>
Wed, 7 Nov 2018 21:02:27 +0000 (21:02 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 7 Nov 2018 21:02:27 +0000 (14:02 -0700)
commite217792beda1ca48daea497c00694a3924f992c5
treea9b3a57a076c540e02affb6a305a3f52f651f185
parent285556b5599bc180ad7a7ba1bb5f226b558ab32d
common.opt: Add -Wattribute-warning.

         * common.opt: Add -Wattribute-warning.
         * doc/invoke.texi: Add documentation for -Wno-attribute-warning.
         * expr.c (expand_expr_real_1): Add new attribute to warning_at
         call to allow user configure behavior of "warning" attribute.

         * gcc.dg/Wno-attribute-warning.c: New test.

From-SVN: r265891
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wno-attribute-warning.c [new file with mode: 0644]