From 32f17b34f57f65ef9bf9eb989c6ffaa67c836e5f Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 15 Aug 2020 21:39:34 +0200 Subject: [PATCH] [KERNEL32_APITEST] Enable SSE for TestSSEExceptions. CORE-17202 Clang will not let us use SSE intrinsics at all when compiling for a target that doesn't support SSE. Since this test is a special case, we can simply fix this by changing the options for one function. The alternative would be to use our own inline functions for the intrinsics instead of the builtins, like we do for GCC. --- .../rostests/apitests/kernel32/SetUnhandledExceptionFilter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/rostests/apitests/kernel32/SetUnhandledExceptionFilter.c b/modules/rostests/apitests/kernel32/SetUnhandledExceptionFilter.c index e59d5e1e7d1..f3a8b1c1a85 100644 --- a/modules/rostests/apitests/kernel32/SetUnhandledExceptionFilter.c +++ b/modules/rostests/apitests/kernel32/SetUnhandledExceptionFilter.c @@ -102,6 +102,9 @@ static LONG WINAPI ExceptionFilterSSEException(LPEXCEPTION_POINTERS exp) return EXCEPTION_CONTINUE_EXECUTION; } +#ifdef __clang__ +__attribute__((__target__("sse"))) +#endif static VOID TestSSEExceptions(VOID) {