Title: [250592] trunk/Source/ThirdParty/ANGLE
Revision
250592
Author
[email protected]
Date
2019-10-01 20:40:27 -0700 (Tue, 01 Oct 2019)

Log Message

[WinCairo][Clang][ANGLE] global_state.cpp(39,1): error: static_assert failed due to requirement 'std::is_trivially_constructible<std::atomic<std::mutex *>>::value' "global mutex is not trivially constructible"
https://bugs.webkit.org/show_bug.cgi?id=201751

Reviewed by Alex Christensen.

Clang-cl couldn't compile the latest ANGLE with MS STL owing to a
static_assert failure.

Fix it by cherri-picking the upstream fix.
<https://chromium.googlesource.com/angle/angle/+/755417dd79071d6149c81418e1404b0c61d19672>

* AUTHORS:
* src/common/angleutils.h:
* src/libGLESv2/global_state.cpp:

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/ANGLE/AUTHORS (250591 => 250592)


--- trunk/Source/ThirdParty/ANGLE/AUTHORS	2019-10-02 03:12:49 UTC (rev 250591)
+++ trunk/Source/ThirdParty/ANGLE/AUTHORS	2019-10-02 03:40:27 UTC (rev 250592)
@@ -58,3 +58,4 @@
 Thomas Miller
 Till Rathmann
 Nick Shaforostov
+Jaime Bernardo

Modified: trunk/Source/ThirdParty/ANGLE/ChangeLog (250591 => 250592)


--- trunk/Source/ThirdParty/ANGLE/ChangeLog	2019-10-02 03:12:49 UTC (rev 250591)
+++ trunk/Source/ThirdParty/ANGLE/ChangeLog	2019-10-02 03:40:27 UTC (rev 250592)
@@ -1,3 +1,20 @@
+2019-10-01  Fujii Hironori  <[email protected]>
+
+        [WinCairo][Clang][ANGLE] global_state.cpp(39,1): error: static_assert failed due to requirement 'std::is_trivially_constructible<std::atomic<std::mutex *>>::value' "global mutex is not trivially constructible"
+        https://bugs.webkit.org/show_bug.cgi?id=201751
+
+        Reviewed by Alex Christensen.
+
+        Clang-cl couldn't compile the latest ANGLE with MS STL owing to a
+        static_assert failure.
+
+        Fix it by cherri-picking the upstream fix.
+        <https://chromium.googlesource.com/angle/angle/+/755417dd79071d6149c81418e1404b0c61d19672>
+
+        * AUTHORS:
+        * src/common/angleutils.h:
+        * src/libGLESv2/global_state.cpp:
+
 2019-09-24  Adrian Perez de Castro  <[email protected]>
 
         [GTK] ANGLE's eglplatform.h is build broken with -DENABLE_X11_PLATFORM=OFF

Modified: trunk/Source/ThirdParty/ANGLE/src/common/angleutils.h (250591 => 250592)


--- trunk/Source/ThirdParty/ANGLE/src/common/angleutils.h	2019-10-02 03:12:49 UTC (rev 250591)
+++ trunk/Source/ThirdParty/ANGLE/src/common/angleutils.h	2019-10-02 03:40:27 UTC (rev 250592)
@@ -333,4 +333,10 @@
 #    define ANGLE_MAYBE_UNUSED
 #endif  // __has_cpp_attribute(maybe_unused)
 
+#if __has_cpp_attribute(require_constant_initialization)
+#    define ANGLE_REQUIRE_CONSTANT_INIT [[require_constant_initialization]]
+#else
+#    define ANGLE_REQUIRE_CONSTANT_INIT
+#endif  // __has_cpp_attribute(require_constant_initialization)
+
 #endif  // COMMON_ANGLEUTILS_H_

Modified: trunk/Source/ThirdParty/ANGLE/src/libGLESv2/global_state.cpp (250591 => 250592)


--- trunk/Source/ThirdParty/ANGLE/src/libGLESv2/global_state.cpp	2019-10-02 03:12:49 UTC (rev 250591)
+++ trunk/Source/ThirdParty/ANGLE/src/libGLESv2/global_state.cpp	2019-10-02 03:40:27 UTC (rev 250592)
@@ -35,9 +35,8 @@
 {
 static TLSIndex threadTLS = TLS_INVALID_INDEX;
 Debug *g_Debug            = nullptr;
-std::atomic<std::mutex *> g_Mutex;
-static_assert(std::is_trivially_constructible<decltype(g_Mutex)>::value,
-              "global mutex is not trivially constructible");
+
+ANGLE_REQUIRE_CONSTANT_INIT std::atomic<std::mutex *> g_Mutex(nullptr);
 static_assert(std::is_trivially_destructible<decltype(g_Mutex)>::value,
               "global mutex is not trivially destructible");
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to