⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280683 in webkit


Ignore:
Timestamp:
Aug 5, 2021, 5:57:04 AM (5 years ago)
Author:
commit-queue@webkit.org
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 <zdobersek@igalia.com> 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).

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r280651 r280683  
     12021-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
    1132021-08-03  Myles C. Maxfield  <mmaxfield@apple.com>
    214
  • trunk/Source/WTF/wtf/StdLibExtras.h

    r278340 r280683  
    8181 * - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43976
    8282 */
    83 #if (CPU(ARM) || CPU(MIPS)) && COMPILER(GCC_COMPATIBLE)
     83#if (CPU(ARM) || CPU(MIPS) || CPU(RISCV64)) && COMPILER(GCC_COMPATIBLE)
    8484template<typename Type>
    8585inline bool isPointerTypeAlignmentOkay(Type* ptr)
Note: See TracChangeset for help on using the changeset viewer.