c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
authorMarek Polacek <polacek@redhat.com>
Mon, 26 Sep 2016 15:53:28 +0000 (15:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 26 Sep 2016 15:53:28 +0000 (15:53 +0000)
commitc6147dc433015793d92602811e585b83c9018bc2
tree0ae29fdb0d04e4498b59ab6240031213610fb6e8
parent8e4284d0b24bd3c745c054054d673ed306d30467
c-lex.c (c_common_has_attribute): Handle attribute fallthrough.

* c-lex.c (c_common_has_attribute): Handle attribute fallthrough.

* system.h: Use __has_attribute to check whether the fallthrough
attribute is supported.

* g++.dg/cpp1z/feat-cxx1z.C: Test attribute fallthrough.

From-SVN: r240499
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-lex.c
gcc/system.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C