Update lang/v8 to version 9.9.115.10
[dports.git] / lang / v8 / files / patch-include_v8config.h
1 --- include/v8config.h.orig     2022-01-23 11:58:51 UTC
2 +++ include/v8config.h
3 @@ -342,7 +342,18 @@ path. Add it with -I<path> to the command line
4  # define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \
5      (V8_HAS_CPP_ATTRIBUTE(no_unique_address))
6  
7 +// Work around Clang bug present in 9.0.1, at least.
8 +//
9 +// Clang stores alignment as a 32-bit unsigned integer, but V8 only uses
10 +// V8_ASSUME_ALIGNED() for a 4GB (2^32) alignment
11 +// (kPtrComprIsolateRootAlignment).  As such, the alignment overflows and
12 +// becomes zero, triggering an internal Clang assertion that alignment must not
13 +// be zero.
14 +#if 0
15  # define V8_HAS_BUILTIN_ASSUME_ALIGNED (__has_builtin(__builtin_assume_aligned))
16 +#else
17 +# define V8_HAS_BUILTIN_ASSUME_ALIGNED 0
18 +#endif
19  # define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16))
20  # define V8_HAS_BUILTIN_BSWAP32 (__has_builtin(__builtin_bswap32))
21  # define V8_HAS_BUILTIN_BSWAP64 (__has_builtin(__builtin_bswap64))