Title: [221575] trunk/Source/WTF
- Revision
- 221575
- Author
- [email protected]
- Date
- 2017-09-04 01:04:06 -0700 (Mon, 04 Sep 2017)
Log Message
Unreviewed, support libstdc++ use with clang
https://bugs.webkit.org/show_bug.cgi?id=176301
* wtf/FastMalloc.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (221574 => 221575)
--- trunk/Source/WTF/ChangeLog 2017-09-04 06:52:42 UTC (rev 221574)
+++ trunk/Source/WTF/ChangeLog 2017-09-04 08:04:06 UTC (rev 221575)
@@ -1,3 +1,10 @@
+2017-09-04 Yusuke Suzuki <[email protected]>
+
+ Unreviewed, support libstdc++ use with clang
+ https://bugs.webkit.org/show_bug.cgi?id=176301
+
+ * wtf/FastMalloc.h:
+
2017-09-03 Yusuke Suzuki <[email protected]>
[WTF] Add C++03 allocator interface for GCC < 6
Modified: trunk/Source/WTF/wtf/FastMalloc.h (221574 => 221575)
--- trunk/Source/WTF/wtf/FastMalloc.h 2017-09-04 06:52:42 UTC (rev 221574)
+++ trunk/Source/WTF/wtf/FastMalloc.h 2017-09-04 08:04:06 UTC (rev 221575)
@@ -125,10 +125,10 @@
fastFree(pointer);
}
-#if COMPILER(GCC)
-#if !GCC_VERSION_AT_LEAST(6, 0, 0)
+#if defined(__GLIBCXX__) && (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE < 6)
// This allocator also supports pre-C++11 STL allocator interface. This is a workaround for GCC < 6, which std::list
- // does not support C++11 allocator.
+ // does not support C++11 allocator. Note that _GLIBCXX_RELEASE is only defined after GCC 7 release. So currently
+ // this workaround is enabled in GCC 6 too.
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55409
using pointer = value_type*;
@@ -177,8 +177,7 @@
using propagate_on_container_move_assignment = std::false_type;
using propagate_on_container_swap = std::false_type;
using is_always_equal = std::is_empty<FastAllocator>;
-#endif // !GCC_VERSION_AT_LEAST(6, 0, 0)
-#endif // COMPILER(GCC)
+#endif // defined(__GLIBCXX__) && (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE < 6)
};
template<typename T, typename U> inline bool operator==(const FastAllocator<T>&, const FastAllocator<U>&) { return true; }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes