1 /* Generated by ./xlat/gen.sh from ./xlat/sigbus_codes.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(BUS_ADRALN) || (defined(HAVE_DECL_BUS_ADRALN) && HAVE_DECL_BUS_ADRALN) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((BUS_ADRALN) == (1), "BUS_ADRALN != 1"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define BUS_ADRALN 1 12 #endif 13 #if defined(BUS_ADRERR) || (defined(HAVE_DECL_BUS_ADRERR) && HAVE_DECL_BUS_ADRERR) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((BUS_ADRERR) == (2), "BUS_ADRERR != 2"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define BUS_ADRERR 2 19 #endif 20 #if defined(BUS_OBJERR) || (defined(HAVE_DECL_BUS_OBJERR) && HAVE_DECL_BUS_OBJERR) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((BUS_OBJERR) == (3), "BUS_OBJERR != 3"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define BUS_OBJERR 3 26 #endif 27 #if defined(BUS_MCEERR_AR) || (defined(HAVE_DECL_BUS_MCEERR_AR) && HAVE_DECL_BUS_MCEERR_AR) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((BUS_MCEERR_AR) == (4), "BUS_MCEERR_AR != 4"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define BUS_MCEERR_AR 4 33 #endif 34 #if defined(BUS_MCEERR_AO) || (defined(HAVE_DECL_BUS_MCEERR_AO) && HAVE_DECL_BUS_MCEERR_AO) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((BUS_MCEERR_AO) == (5), "BUS_MCEERR_AO != 5"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define BUS_MCEERR_AO 5 40 #endif 41 42 #ifndef XLAT_MACROS_ONLY 43 44 # ifdef IN_MPERS 45 46 extern const struct xlat sigbus_codes[]; 47 48 # else 49 50 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS) 51 static 52 # endif 53 const struct xlat sigbus_codes[] = { 54 XLAT(BUS_ADRALN), 55 XLAT(BUS_ADRERR), 56 XLAT(BUS_OBJERR), 57 #if defined(BUS_OPFETCH) || (defined(HAVE_DECL_BUS_OPFETCH) && HAVE_DECL_BUS_OPFETCH) 58 XLAT(BUS_OPFETCH), 59 #endif 60 XLAT(BUS_MCEERR_AR), 61 XLAT(BUS_MCEERR_AO), 62 XLAT_END 63 }; 64 65 # endif /* !IN_MPERS */ 66 67 #endif /* !XLAT_MACROS_ONLY */ 68