[cfe-commits] r85666 - in /cfe/trunk: include/clang/Basic/Builtins.def test/Sema/constant-builtins-2.c
Douglas Gregor
dgregor at apple.com
Sat Oct 31 09:04:14 PDT 2009
Author: dgregor
Date: Sat Oct 31 11:04:14 2009
New Revision: 85666
URL: http://llvm.org/viewvc/llvm-project?rev=85666&view=rev
Log:
Fix the type of __builtin_expect, from Ed Schouten!
Modified:
cfe/trunk/include/clang/Basic/Builtins.def
cfe/trunk/test/Sema/constant-builtins-2.c
Modified: cfe/trunk/include/clang/Basic/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=85666&r1=85665&r2=85666&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Builtins.def (original)
+++ cfe/trunk/include/clang/Basic/Builtins.def Sat Oct 31 11:04:14 2009
@@ -329,7 +329,7 @@
BUILTIN(__builtin___vfprintf_chk, "iP*icC*a", "FP:2:")
BUILTIN(__builtin___vprintf_chk, "iicC*a", "FP:1:")
-BUILTIN(__builtin_expect, "iii" , "nc")
+BUILTIN(__builtin_expect, "LiLiLi" , "nc")
BUILTIN(__builtin_prefetch, "vvC*.", "nc")
BUILTIN(__builtin_abort, "v", "Fnr")
BUILTIN(__builtin_trap, "v", "nr")
Modified: cfe/trunk/test/Sema/constant-builtins-2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/constant-builtins-2.c?rev=85666&r1=85665&r2=85666&view=diff
==============================================================================
--- cfe/trunk/test/Sema/constant-builtins-2.c (original)
+++ cfe/trunk/test/Sema/constant-builtins-2.c Sat Oct 31 11:04:14 2009
@@ -48,3 +48,5 @@
int h0 = __builtin_types_compatible_p(int, float);
//int h1 = __builtin_choose_expr(1, 10, f());
//int h2 = __builtin_expect(0, 0);
+extern long int bi0;
+extern __typeof__(__builtin_expect(0, 0)) bi0;
More information about the cfe-commits
mailing list