diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-05 19:05:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-05 19:05:44 +0000 |
commit | 8223b1d05fc6f46e76bb06d836c1e6dec764e65b (patch) | |
tree | 7dd13e2f324191836785a51db52326afa0a1db3d | |
parent | b9f341916e484ff6ba2c2d28c8b2dd5fa12b0015 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57126 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/X86Builtins.def | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clang/AST/X86Builtins.def b/include/clang/AST/X86Builtins.def index ccb75ecebc..057ff91f12 100644 --- a/include/clang/AST/X86Builtins.def +++ b/include/clang/AST/X86Builtins.def @@ -293,7 +293,12 @@ BUILTIN(__builtin_ia32_storelps, "vV2i*V4f", "") 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", "") |