Skip to content

Commit 23b8308

Browse files
committed
import Workstation 16.2.4 module sources
1 parent a83bc0f commit 23b8308

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

vmmon-only/include/vm_asm_x86.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,15 @@
6161
* ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
6262
* ((__builtin_constant_p(expr) ? ((expr) >> 16) == 0) \
6363
* : sizeof(expr) <= 2)
64+
* The __builtin_choose_expr is due to GCC bug 79482:
65+
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79482
6466
*/
6567
#ifndef USE_UBSAN
6668
#define ASSERT_ON_COMPILE_SELECTOR_SIZE(expr) \
6769
ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
68-
((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
69-
sizeof(expr) <= 2))
70+
__builtin_choose_expr(__builtin_constant_p(expr), \
71+
((expr) >> 16) == 0, \
72+
sizeof(expr) <= 2))
7073
#else
7174
#define ASSERT_ON_COMPILE_SELECTOR_SIZE(expr)
7275
#endif

0 commit comments

Comments
 (0)