[cfe-commits] r57126 - /cfe/trunk/include/clang/AST/X86Builtins.def
Chris Lattner
sabre at nondot.org
Sun Oct 5 12:05:44 PDT 2008
Author: lattner
Date: Sun Oct 5 14:05:44 2008
New Revision: 57126
URL: http://llvm.org/viewvc/llvm-project?rev=57126&view=rev
Log:
Fix a problem reported in PR2766 that makes clang reject old versions
of GCC's headers. This impacts people that run clang in Tiger systems.
Modified:
cfe/trunk/include/clang/AST/X86Builtins.def
Modified: cfe/trunk/include/clang/AST/X86Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/X86Builtins.def?rev=57126&r1=57125&r2=57126&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/X86Builtins.def (original)
+++ cfe/trunk/include/clang/AST/X86Builtins.def Sun Oct 5 14:05:44 2008
@@ -293,7 +293,12 @@
BUILTIN(__builtin_ia32_movmskps, "iV4f", "")
BUILTIN(__builtin_ia32_pmovmskb, "iV8c", "")
BUILTIN(__builtin_ia32_movntps, "vf*V4f", "")
-BUILTIN(__builtin_ia32_movntq, "vV1LLi*V1LLi", "")
+// FIXME: the prototype for __builtin_ia32_movntq changed across different
+// versions of GCC. Until we can replace GCC's xmmintrin.h, this is hacked to
+// be a vararg builtin instead of taking V1LLi like it should. This loses some
+// type checking but makes us compatible with old version of GCC's xmmintrin.h
+// file.
+BUILTIN(__builtin_ia32_movntq, "vV1LLi*.", "")
BUILTIN(__builtin_ia32_sfence, "v", "")
BUILTIN(__builtin_ia32_psadbw, "V4sV8cV8c", "")
BUILTIN(__builtin_ia32_rcpps, "V4fV4f", "")
More information about the cfe-commits
mailing list