Fix target attribute handling (PR c++/81355).
authorMartin Liska <mliska@suse.cz>
Thu, 10 Aug 2017 07:43:49 +0000 (09:43 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 10 Aug 2017 07:43:49 +0000 (07:43 +0000)
commit2b7d0696e134613819d4c1cdbdd9e055f7a297ea
treeaeb62d896db715cdd80544148c07b70a8a07e2ed
parent50aa16c38821e9cba4fabf6ca4b601b34b84a9c8
Fix target attribute handling (PR c++/81355).

2017-08-10  Martin Liska  <mliska@suse.cz>

PR c++/81355
* c-attribs.c (handle_target_attribute):
Report warning for an empty string argument of target attribute.
2017-08-10  Martin Liska  <mliska@suse.cz>

PR c++/81355
* g++.dg/other/pr81355.C: New test.

From-SVN: r251020
gcc/ChangeLog
gcc/c-family/c-attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr81355.C [new file with mode: 0644]