https://git.reactos.org/?p=reactos.git;a=commitdiff;h=32f17b34f57f65ef9bf9eb...
commit 32f17b34f57f65ef9bf9eb989c6ffaa67c836e5f Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Sat Aug 15 21:39:34 2020 +0200 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Sun Aug 23 12:07:38 2020 +0200
[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. --- modules/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) {