Browse Source

sim: add ATTRIBUTE_FALLTHROUGH for local code

We'll replace various /* fall through */ comments so compilers can
actually understand what the code is doing.
binutils-2_42-branch
Mike Frysinger 2 years ago
parent
commit
29f1ffea25
  1. 3
      sim/common/defs.h
  2. 3
      sim/ppc/defs.h

3
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

3
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

Loading…
Cancel
Save