aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 00:19:27 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 01:59:22 -0500
commit29f1ffea25b706ab0a03ac2bcf549e22332afefa (patch)
treed7c74abb2be4e27b80bc3b3791dff996527c17e3 /sim/ppc
parentd137b254d9aa4c91d5d2e7865d971bbdaa40e769 (diff)
downloadfsf-binutils-gdb-29f1ffea25b706ab0a03ac2bcf549e22332afefa.zip
fsf-binutils-gdb-29f1ffea25b706ab0a03ac2bcf549e22332afefa.tar.gz
fsf-binutils-gdb-29f1ffea25b706ab0a03ac2bcf549e22332afefa.tar.bz2
sim: add ATTRIBUTE_FALLTHROUGH for local code
We'll replace various /* fall through */ comments so compilers can actually understand what the code is doing.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/ppc/defs.h b/sim/ppc/defs.h
index 276063d..ab7a142 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