public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: add ATTRIBUTE_FALLTHROUGH for local code
@ 2023-12-21  7:01 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-21  7:01 UTC (permalink / raw)
  To: gdb-cvs

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

commit 29f1ffea25b706ab0a03ac2bcf549e22332afefa
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Thu Dec 21 00:19:27 2023 -0500

    sim: add ATTRIBUTE_FALLTHROUGH for local code
    
    We'll replace various /* fall through */ comments so compilers can
    actually understand what the code is doing.

Diff:
---
 sim/common/defs.h | 3 +++
 sim/ppc/defs.h    | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/sim/common/defs.h b/sim/common/defs.h
index 0f4062c2031..01db1804b4c 100644
--- a/sim/common/defs.h
+++ b/sim/common/defs.h
@@ -25,6 +25,9 @@
 /* Include gnulib's various configure tests.  */
 #include "gnulib/config.h"
 
+/* This comes from gnulib.  Export it until ansidecl.h handles it.  */
+#define ATTRIBUTE_FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
+
 /* Reset macros that our config.h will provide.  */
 #undef PACKAGE
 #undef PACKAGE_BUGREPORT
diff --git a/sim/ppc/defs.h b/sim/ppc/defs.h
index 276063d4b74..ab7a142b899 100644
--- a/sim/ppc/defs.h
+++ b/sim/ppc/defs.h
@@ -23,6 +23,9 @@
 /* Include gnulib's various configure tests.  */
 #include "gnulib/config.h"
 
+/* This comes from gnulib.  Export it until ansidecl.h handles it.  */
+#define ATTRIBUTE_FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
+
 /* Reset macros that our config.h will provide.  */
 #undef PACKAGE
 #undef PACKAGE_BUGREPORT

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

only message in thread, other threads:[~2023-12-21  7:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-21  7:01 [binutils-gdb] sim: add ATTRIBUTE_FALLTHROUGH for local code Michael Frysinger

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).