From: Jose E. Marchesi Date: Tue, 15 Mar 2022 20:04:57 +0000 (+0100) Subject: gprofng: avoid using `fallthrough' attributes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6aa03e9c1769c8d925f4d23d72af93483bfd31f3;p=binutils-gdb.git gprofng: avoid using `fallthrough' attributes gprofng didn't build with gcc 6.3 due to the usage of __attribute__ ((fallthrough)). This patch uses /* FALLTHROUGH */ instead. 2022-03-15 Jose E. Marchesi * gprofng/src/gp-collect-app.cc (collect::check_args): Use fallthrough comment instead of attribute. --- diff --git a/ChangeLog b/ChangeLog index 73b6085d6ef..dfe468c0af4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-03-15 Jose E. Marchesi + + * gprofng/src/gp-collect-app.cc (collect::check_args): Use + fallthrough comment instead of attribute. + 2022-03-11 Vladimir Mezentsev * Makefile.def: Add gprofng module. diff --git a/gprofng/src/gp-collect-app.cc b/gprofng/src/gp-collect-app.cc index afaae70bc2b..a40cf8fb9be 100644 --- a/gprofng/src/gp-collect-app.cc +++ b/gprofng/src/gp-collect-app.cc @@ -848,7 +848,7 @@ collect::check_args (int argc, char *argv[]) } case 'O': overwriteExp = true; - __attribute__ ((fallthrough)); + /* FALLTHROUGH */ case 'o': if (precheck == 1) {