]> granicus.if.org Git - clang/commitdiff
Linux still needs these hacks.
authorBill Wendling <isanbard@gmail.com>
Wed, 20 Oct 2010 00:12:59 +0000 (00:12 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 20 Oct 2010 00:12:59 +0000 (00:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116888 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/mmx-builtins.c
test/CodeGen/vector.c
test/Headers/c89.c

index a46601f93c3edcfb4b0d0735f3078ce104c3de35..7934e77890b31df37b8eaa18b5f357e5fd868fa0 100644 (file)
@@ -1,5 +1,9 @@
 // RUN: %clang_cc1 %s -O3 -triple=x86_64-apple-darwin -target-feature +ssse3 -S -o - | FileCheck %s
 
+// FIXME: Disable inclusion of mm_malloc.h, our current implementation is broken
+// on win32 since we don't generally know how to find errno.h.
+#define __MM_MALLOC_H
+
 #include <tmmintrin.h>
 
 __m64 test1(__m64 a, __m64 b) {
index 099867732bd3cf10e62becc0e78106dc98cb8046..3fa5f1441d2fd496117e9d554698e85f05123b40 100644 (file)
@@ -18,6 +18,11 @@ void test3 ( vec4* a, char b, float c ) {
   (*a)[b] = c;
 }
 
+
+
+// Don't include mm_malloc.h, it's system specific.
+#define __MM_MALLOC_H
+
 #include <mmintrin.h>
 
 int test4(int argc, char *argv[]) {
index 618f11510d4020b5316de16808c24ea2883f5c5e..9e01ff9297b86e8a33a0822b3b52ed3bd00fba8b 100644 (file)
@@ -1,5 +1,10 @@
 // RUN: %clang -ccc-host-triple i386-apple-darwin10 -fsyntax-only -Xclang -verify -std=c89 %s
 
+// FIXME: Disable inclusion of mm_malloc.h, our current implementation is broken
+// on win32 since we don't generally know how to find errno.h.
+
+#define __MM_MALLOC_H
+
 // PR6658
 #include <xmmintrin.h>