File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/absl/container/internal Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,11 @@ inline bool IsEmptyOrDeleted(ctrl_t c) { return c < kSentinel; }
324
324
// Work around this by using the portable implementation of Group
325
325
// when using -funsigned-char under GCC.
326
326
inline __m128i _mm_cmpgt_epi8_fixed (__m128i a, __m128i b) {
327
- #if defined(__GNUC__) && !defined(__clang__)
327
+ // dd: in the latest gcc we get warnings about overflow here.
328
+ // the linked bug was fixed in gcc 9 and fixes were backported
329
+ // to gcc 7 and 8 patch releases. To fix the warning, I just
330
+ // added a check for the GCC version.
331
+ #if defined(__GNUC__) && (__GNUC__ < 9) && !defined(__clang__)
328
332
if (std::is_unsigned<char >::value) {
329
333
const __m128i mask = _mm_set1_epi8 (0x80 );
330
334
const __m128i diff = _mm_subs_epi8 (b, a);
You can’t perform that action at this time.
0 commit comments