Changeset 280683 in webkit
- Timestamp:
- Aug 5, 2021, 5:57:04 AM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/StdLibExtras.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r280651 r280683 1 2021-08-05 Zan Dobersek <zdobersek@igalia.com> 2 3 Avoid reinterpret_cast alignment increase warnings with GCC on CPU(RISCV64) 4 https://bugs.webkit.org/show_bug.cgi?id=228818 5 6 Reviewed by Adrian Perez de Castro. 7 8 * wtf/StdLibExtras.h: As with 32-bit ARM and MIPS targets, RISC-V 64-bit 9 builds with GCC also spawn warnings when the use of reinterpret_cast 10 causes an increase in alignment. Workaround via reinterpret_cast_ptr is 11 thus required for CPU(RISCV64). 12 1 13 2021-08-03 Myles C. Maxfield <mmaxfield@apple.com> 2 14 -
trunk/Source/WTF/wtf/StdLibExtras.h
r278340 r280683 81 81 * - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43976 82 82 */ 83 #if (CPU(ARM) || CPU(MIPS) ) && COMPILER(GCC_COMPATIBLE)83 #if (CPU(ARM) || CPU(MIPS) || CPU(RISCV64)) && COMPILER(GCC_COMPATIBLE) 84 84 template<typename Type> 85 85 inline bool isPointerTypeAlignmentOkay(Type* ptr)
Note:
See TracChangeset
for help on using the changeset viewer.