gprofng: Define ATTRIBUTE_FALLTHROUGH
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Mar 2022 15:49:01 +0000 (08:49 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 16 Mar 2022 13:42:51 +0000 (06:42 -0700)
commitc5edd3b8847f118bd022c473b126695fb39f6412
tree40ee1593194f4c62617fd949adee751ff5cd83dc
parent0c857ef4dfc083b6f5ef2d32182b8db24c5f8d55
gprofng: Define ATTRIBUTE_FALLTHROUGH

Define ATTRIBUTE_FALLTHROUGH to __attribute__ ((fallthrough)) only for
GCC 7 or above.

PR gprof/28969
* common/gp-defs.h (ATTRIBUTE_FALLTHROUGH): New.
* src/gp-collect-app.cc (collect::check_args): Replace
/* FALLTHROUGH */ with ATTRIBUTE_FALLTHROUGH.
gprofng/common/gp-defs.h
gprofng/src/gp-collect-app.cc