Project

General

Profile

Bug #13748 ยป 0001-Fix-overflow-detection-for-LLP64-arch.patch

larskanis (Lars Kanis), 07/15/2017 01:22 PM

View differences:

internal.h
115 115
/* __builtin_mul_overflow_p can take bitfield */
116 116
/* and GCC permits bitfields for integers other than int */
117 117
#define MUL_OVERFLOW_FIXNUM_P(a, b) ({ \
118
    struct { SIGNED_VALUE fixnum : SIZEOF_VALUE * CHAR_BIT - 1; } c; \
118
    struct { long fixnum : SIZEOF_LONG * CHAR_BIT - 1; } c; \
119 119
    __builtin_mul_overflow_p((a), (b), c.fixnum); \
120 120
})
121 121
#else
122
-