Title: [280683] trunk/Source/WTF
- Revision
- 280683
- Author
- [email protected]
- Date
- 2021-08-05 05:57:04 -0700 (Thu, 05 Aug 2021)
Log Message
Avoid reinterpret_cast alignment increase warnings with GCC on CPU(RISCV64)
https://bugs.webkit.org/show_bug.cgi?id=228818
Patch by Zan Dobersek <[email protected]> on 2021-08-05
Reviewed by Adrian Perez de Castro.
* wtf/StdLibExtras.h: As with 32-bit ARM and MIPS targets, RISC-V 64-bit
builds with GCC also spawn warnings when the use of reinterpret_cast
causes an increase in alignment. Workaround via reinterpret_cast_ptr is
thus required for CPU(RISCV64).
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (280682 => 280683)
--- trunk/Source/WTF/ChangeLog 2021-08-05 12:25:44 UTC (rev 280682)
+++ trunk/Source/WTF/ChangeLog 2021-08-05 12:57:04 UTC (rev 280683)
@@ -1,3 +1,15 @@
+2021-08-05 Zan Dobersek <[email protected]>
+
+ Avoid reinterpret_cast alignment increase warnings with GCC on CPU(RISCV64)
+ https://bugs.webkit.org/show_bug.cgi?id=228818
+
+ Reviewed by Adrian Perez de Castro.
+
+ * wtf/StdLibExtras.h: As with 32-bit ARM and MIPS targets, RISC-V 64-bit
+ builds with GCC also spawn warnings when the use of reinterpret_cast
+ causes an increase in alignment. Workaround via reinterpret_cast_ptr is
+ thus required for CPU(RISCV64).
+
2021-08-03 Myles C. Maxfield <[email protected]>
[Cocoa] Tweak the formatting for passing NSArrays to TextStreams
Modified: trunk/Source/WTF/wtf/StdLibExtras.h (280682 => 280683)
--- trunk/Source/WTF/wtf/StdLibExtras.h 2021-08-05 12:25:44 UTC (rev 280682)
+++ trunk/Source/WTF/wtf/StdLibExtras.h 2021-08-05 12:57:04 UTC (rev 280683)
@@ -80,7 +80,7 @@
* - https://bugs.webkit.org/show_bug.cgi?id=38045
* - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43976
*/
-#if (CPU(ARM) || CPU(MIPS)) && COMPILER(GCC_COMPATIBLE)
+#if (CPU(ARM) || CPU(MIPS) || CPU(RISCV64)) && COMPILER(GCC_COMPATIBLE)
template<typename Type>
inline bool isPointerTypeAlignmentOkay(Type* ptr)
{
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes