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

Changeset 235740 in webkit


Ignore:
Timestamp:
Sep 6, 2018, 9:41:32 AM (8 years ago)
Author:
tpopela@redhat.com
Message:

[JSC] Build broken after r234975 on s390x, ppc64le, armv7hl
​https://bugs.webkit.org/show_bug.cgi?id=189078

Reviewed by Mark Lam.

Caused by the GCC bug - ​https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70124.
Using the ternary operator instead of std::max() fixes it.

  • heap/RegisterState.h:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r235715 r235740  
     12018-09-06  Tomas Popela  <tpopela@redhat.com>
     2
     3        [JSC] Build broken after r234975 on s390x, ppc64le, armv7hl
     4        https://bugs.webkit.org/show_bug.cgi?id=189078
     5
     6        Reviewed by Mark Lam.
     7
     8        Caused by the GCC bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70124.
     9        Using the ternary operator instead of std::max() fixes it.
     10
     11        * heap/RegisterState.h:
     12
    1132018-09-05  Mark Lam  <mark.lam@apple.com>
    214
  • trunk/Source/JavaScriptCore/heap/RegisterState.h

    r234975 r235740  
    167167#endif
    168168#define ALLOCATE_AND_GET_REGISTER_STATE(registers) \
    169     alignas(std::max(alignof(void*), alignof(RegisterState))) RegisterState registers; \
     169    alignas(alignof(void*) > alignof(RegisterState) ? alignof(void*) : alignof(RegisterState)) RegisterState registers; \
    170170    setjmp(registers)
    171171
Note: See TracChangeset for help on using the changeset viewer.