1 /* Generated by ./xlat/gen.sh from ./xlat/sigfpe_codes.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(FPE_INTDIV) || (defined(HAVE_DECL_FPE_INTDIV) && HAVE_DECL_FPE_INTDIV) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((FPE_INTDIV) == (1), "FPE_INTDIV != 1"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define FPE_INTDIV 1 12 #endif 13 #if defined(FPE_INTOVF) || (defined(HAVE_DECL_FPE_INTOVF) && HAVE_DECL_FPE_INTOVF) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((FPE_INTOVF) == (2), "FPE_INTOVF != 2"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define FPE_INTOVF 2 19 #endif 20 #if defined(FPE_FLTDIV) || (defined(HAVE_DECL_FPE_FLTDIV) && HAVE_DECL_FPE_FLTDIV) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((FPE_FLTDIV) == (3), "FPE_FLTDIV != 3"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define FPE_FLTDIV 3 26 #endif 27 #if defined(FPE_FLTOVF) || (defined(HAVE_DECL_FPE_FLTOVF) && HAVE_DECL_FPE_FLTOVF) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((FPE_FLTOVF) == (4), "FPE_FLTOVF != 4"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define FPE_FLTOVF 4 33 #endif 34 #if defined(FPE_FLTUND) || (defined(HAVE_DECL_FPE_FLTUND) && HAVE_DECL_FPE_FLTUND) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((FPE_FLTUND) == (5), "FPE_FLTUND != 5"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define FPE_FLTUND 5 40 #endif 41 #if defined(FPE_FLTRES) || (defined(HAVE_DECL_FPE_FLTRES) && HAVE_DECL_FPE_FLTRES) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((FPE_FLTRES) == (6), "FPE_FLTRES != 6"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define FPE_FLTRES 6 47 #endif 48 #if defined(FPE_FLTINV) || (defined(HAVE_DECL_FPE_FLTINV) && HAVE_DECL_FPE_FLTINV) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((FPE_FLTINV) == (7), "FPE_FLTINV != 7"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define FPE_FLTINV 7 54 #endif 55 #if defined(FPE_FLTSUB) || (defined(HAVE_DECL_FPE_FLTSUB) && HAVE_DECL_FPE_FLTSUB) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((FPE_FLTSUB) == (8), "FPE_FLTSUB != 8"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define FPE_FLTSUB 8 61 #endif 62 #if defined(FPE_FLTUNK) || (defined(HAVE_DECL_FPE_FLTUNK) && HAVE_DECL_FPE_FLTUNK) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((FPE_FLTUNK) == (14), "FPE_FLTUNK != 14"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define FPE_FLTUNK 14 68 #endif 69 #if defined(FPE_CONDTRAP) || (defined(HAVE_DECL_FPE_CONDTRAP) && HAVE_DECL_FPE_CONDTRAP) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((FPE_CONDTRAP) == (15), "FPE_CONDTRAP != 15"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define FPE_CONDTRAP 15 75 #endif 76 77 #ifndef XLAT_MACROS_ONLY 78 79 # ifdef IN_MPERS 80 81 extern const struct xlat sigfpe_codes[]; 82 83 # else 84 85 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS) 86 static 87 # endif 88 const struct xlat sigfpe_codes[] = { 89 XLAT(FPE_INTDIV), 90 XLAT(FPE_INTOVF), 91 XLAT(FPE_FLTDIV), 92 XLAT(FPE_FLTOVF), 93 XLAT(FPE_FLTUND), 94 XLAT(FPE_FLTRES), 95 XLAT(FPE_FLTINV), 96 XLAT(FPE_FLTSUB), 97 #if defined(FPE_MDAOVF) || (defined(HAVE_DECL_FPE_MDAOVF) && HAVE_DECL_FPE_MDAOVF) 98 XLAT(FPE_MDAOVF), 99 #endif 100 #if defined(__FPE_DECOVF) || (defined(HAVE_DECL___FPE_DECOVF) && HAVE_DECL___FPE_DECOVF) 101 XLAT(__FPE_DECOVF), 102 #endif 103 #if defined(__FPE_DECDIV) || (defined(HAVE_DECL___FPE_DECDIV) && HAVE_DECL___FPE_DECDIV) 104 XLAT(__FPE_DECDIV), 105 #endif 106 #if defined(__FPE_DECERR) || (defined(HAVE_DECL___FPE_DECERR) && HAVE_DECL___FPE_DECERR) 107 XLAT(__FPE_DECERR), 108 #endif 109 #if defined(__FPE_INVASC) || (defined(HAVE_DECL___FPE_INVASC) && HAVE_DECL___FPE_INVASC) 110 XLAT(__FPE_INVASC), 111 #endif 112 #if defined(__FPE_INVDEC) || (defined(HAVE_DECL___FPE_INVDEC) && HAVE_DECL___FPE_INVDEC) 113 XLAT(__FPE_INVDEC), 114 #endif 115 XLAT(FPE_FLTUNK), 116 XLAT(FPE_CONDTRAP), 117 XLAT_END 118 }; 119 120 # endif /* !IN_MPERS */ 121 122 #endif /* !XLAT_MACROS_ONLY */ 123