public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gprofng: avoid using `fallthrough' attributes
@ 2022-03-15 20:06 Jose E. Marchesi
  0 siblings, 0 replies; only message in thread
From: Jose E. Marchesi @ 2022-03-15 20:06 UTC (permalink / raw)
  To: bfd-cvs, gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6aa03e9c1769c8d925f4d23d72af93483bfd31f3

commit 6aa03e9c1769c8d925f4d23d72af93483bfd31f3
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date:   Tue Mar 15 21:04:57 2022 +0100

    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  <jose.marchesi@oracle.com>
    
            * gprofng/src/gp-collect-app.cc (collect::check_args): Use
            fallthrough comment instead of attribute.

Diff:
---
 ChangeLog                     | 5 +++++
 gprofng/src/gp-collect-app.cc | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 73b6085d6ef..dfe468c0af4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-03-15  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+	* gprofng/src/gp-collect-app.cc (collect::check_args): Use
+	fallthrough comment instead of attribute.
+
 2022-03-11  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
 
 	* 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)
 	    {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-15 20:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 20:06 [binutils-gdb] gprofng: avoid using `fallthrough' attributes Jose E. Marchesi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).