1 /* Generated by ./xlat/gen.sh from ./xlat/sigsegv_codes.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(SEGV_MAPERR) || (defined(HAVE_DECL_SEGV_MAPERR) && HAVE_DECL_SEGV_MAPERR) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((SEGV_MAPERR) == (1), "SEGV_MAPERR != 1"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define SEGV_MAPERR 1 12 #endif 13 #if defined(SEGV_ACCERR) || (defined(HAVE_DECL_SEGV_ACCERR) && HAVE_DECL_SEGV_ACCERR) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((SEGV_ACCERR) == (2), "SEGV_ACCERR != 2"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define SEGV_ACCERR 2 19 #endif 20 #if defined(SEGV_BNDERR) || (defined(HAVE_DECL_SEGV_BNDERR) && HAVE_DECL_SEGV_BNDERR) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((SEGV_BNDERR) == (3), "SEGV_BNDERR != 3"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define SEGV_BNDERR 3 26 #endif 27 #if defined(SEGV_PKUERR) || (defined(HAVE_DECL_SEGV_PKUERR) && HAVE_DECL_SEGV_PKUERR) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((SEGV_PKUERR) == (4), "SEGV_PKUERR != 4"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define SEGV_PKUERR 4 33 #endif 34 #if defined(SEGV_ACCADI) || (defined(HAVE_DECL_SEGV_ACCADI) && HAVE_DECL_SEGV_ACCADI) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((SEGV_ACCADI) == (5), "SEGV_ACCADI != 5"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define SEGV_ACCADI 5 40 #endif 41 #if defined(SEGV_ADIDERR) || (defined(HAVE_DECL_SEGV_ADIDERR) && HAVE_DECL_SEGV_ADIDERR) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((SEGV_ADIDERR) == (6), "SEGV_ADIDERR != 6"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define SEGV_ADIDERR 6 47 #endif 48 #if defined(SEGV_ADIPERR) || (defined(HAVE_DECL_SEGV_ADIPERR) && HAVE_DECL_SEGV_ADIPERR) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((SEGV_ADIPERR) == (7), "SEGV_ADIPERR != 7"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define SEGV_ADIPERR 7 54 #endif 55 56 #ifndef XLAT_MACROS_ONLY 57 58 # ifdef IN_MPERS 59 60 extern const struct xlat sigsegv_codes[]; 61 62 # else 63 64 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS) 65 static 66 # endif 67 const struct xlat sigsegv_codes[] = { 68 XLAT(SEGV_MAPERR), 69 XLAT(SEGV_ACCERR), 70 #if defined(SEGV_STACKFLOW) || (defined(HAVE_DECL_SEGV_STACKFLOW) && HAVE_DECL_SEGV_STACKFLOW) 71 XLAT(SEGV_STACKFLOW), 72 #endif 73 XLAT(SEGV_BNDERR), 74 #if defined(__SEGV_PSTKOVF) || (defined(HAVE_DECL___SEGV_PSTKOVF) && HAVE_DECL___SEGV_PSTKOVF) 75 XLAT(__SEGV_PSTKOVF), 76 #endif 77 XLAT(SEGV_PKUERR), 78 XLAT(SEGV_ACCADI), 79 XLAT(SEGV_ADIDERR), 80 XLAT(SEGV_ADIPERR), 81 XLAT_END 82 }; 83 84 # endif /* !IN_MPERS */ 85 86 #endif /* !XLAT_MACROS_ONLY */ 87