void-packages/srcpkgs/webkit2gtk/patches/fix-arm-RegisterState.patch
Jürgen Buchmüller aae267c78e
webkit2gtk: fix arm*
Replace std::max() with a ternary conditional.
Work around this gcc bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70124

Also fix *-musl issues by reducing the stack/heap usage

Closes: #2831 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-09-18 15:05:33 +02:00

11 lines
538 B
Diff

--- Source/JavaScriptCore/heap/RegisterState.h 2018-09-16 19:01:30.092094651 +0200
+++ Source/JavaScriptCore/heap/RegisterState.h 2018-09-16 19:11:50.022069933 +0200
@@ -166,7 +166,7 @@
#pragma warning(disable: 4611)
#endif
#define ALLOCATE_AND_GET_REGISTER_STATE(registers) \
- alignas(std::max(alignof(void*), alignof(RegisterState))) RegisterState registers; \
+ alignas(alignof(void*) > alignof(RegisterState) ? alignof(void*) : alignof(RegisterState)) RegisterState registers; \
setjmp(registers)
#if COMPILER(MSVC)