SHA256
1
0
forked from pool/llvm
Ismail Dönmez 2013-12-04 10:45:51 +00:00 committed by Git OBS Bridge
parent 41d2843e03
commit daa7e74b06
2 changed files with 31 additions and 0 deletions

29
asan-sse2.patch Normal file
View File

@ -0,0 +1,29 @@
Index: llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc
===================================================================
--- llvm.orig/projects/compiler-rt/lib/asan/tests/asan_test.cc
+++ llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc
@@ -669,7 +669,8 @@ TEST(AddressSanitizer, ThreadStackReuseT
PTHREAD_JOIN(t, 0);
}
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(__i386__) || defined(__x86_64__) && !defined(__i586__)
+#include <emmintrin.h>
TEST(AddressSanitizer, Store128Test) {
char *a = Ident((char*)malloc(Ident(12)));
char *p = a;
Index: llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h
===================================================================
--- llvm.orig/projects/compiler-rt/lib/asan/tests/asan_test_utils.h
+++ llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h
@@ -41,10 +41,6 @@
#include <unistd.h>
#endif
-#if defined(__i386__) || defined(__x86_64__)
-#include <emmintrin.h>
-#endif
-
#ifndef __APPLE__
#include <malloc.h>
#endif

View File

@ -45,6 +45,7 @@ Patch8: aarch64-suse-support.patch
Patch9: arm-remove-xfails.diff
# PATCH-FIX-OPENSUSE asan-disable-hugemalloctest.patch -- Disable ASAN HugeMallocTest
Patch10: asan-disable-hugemalloctest.patch
Patch11: asan-sse2.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
@ -163,6 +164,7 @@ This package contains the Python bindings to clang (C language) frontend for LLV
%patch8 -p1
%patch9
%patch10 -p1
%patch11 -p1
# We hardcode i586
rm tools/clang/test/Driver/x86_features.c