]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: add ATTRIBUTE_FALLTHROUGH for local code
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 05:19:27 +0000 (00:19 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:22 +0000 (01:59 -0500)
We'll replace various /* fall through */ comments so compilers can
actually understand what the code is doing.

sim/common/defs.h
sim/ppc/defs.h

index 0f4062c2031dc2ca4b0ddf0da657f0d6d138682b..01db1804b4cd95d49ee35c40fc2edfc633f3b213 100644 (file)
@@ -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
index 276063d4b74e330195f2a556ef4d83844ab3972b..ab7a142b8994379251473318e4afd7106db7a38a 100644 (file)
@@ -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