Don't use gcc 4.8 workaround in the hash test with clang
This is unnecessary and just results in a warning about an unknown attribute when building with clang.
This commit is contained in:
@@ -377,7 +377,7 @@ void MakeKeyValuePair(size_t i, size_t count, T*& key, ValueT& value)
|
|||||||
// the test
|
// the test
|
||||||
template <class HashMapT>
|
template <class HashMapT>
|
||||||
void
|
void
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
// At least g++ 4.8.2 (included in Ubuntu 14.04) is known to miscompile the
|
// At least g++ 4.8.2 (included in Ubuntu 14.04) is known to miscompile the
|
||||||
// code in this function and make all the loops below infinite when using -O2,
|
// code in this function and make all the loops below infinite when using -O2,
|
||||||
// so we need to turn off optimizations for it to allow the tests to run at
|
// so we need to turn off optimizations for it to allow the tests to run at
|
||||||
|
Reference in New Issue
Block a user