[cfe-commits] r156396 - in /cfe/trunk: include/clang/Basic/Builtins.def test/Sema/implicit-builtin-decl.c
Douglas Gregor
dgregor at apple.com
Tue May 8 11:29:52 PDT 2012
Author: dgregor
Date: Tue May 8 13:29:52 2012
New Revision: 156396
URL: http://llvm.org/viewvc/llvm-project?rev=156396&view=rev
Log:
Fix fmin*/fmax* library builtin signatures.
Modified:
cfe/trunk/include/clang/Basic/Builtins.def
cfe/trunk/test/Sema/implicit-builtin-decl.c
Modified: cfe/trunk/include/clang/Basic/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=156396&r1=156395&r2=156396&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Builtins.def (original)
+++ cfe/trunk/include/clang/Basic/Builtins.def Tue May 8 13:29:52 2012
@@ -848,13 +848,13 @@
LIBBUILTIN(fmal, "LdLdLdLd", "fc", "math.h", ALL_LANGUAGES)
LIBBUILTIN(fmaf, "ffff", "fc", "math.h", ALL_LANGUAGES)
-LIBBUILTIN(fmax, "dd", "fe", "math.h", ALL_LANGUAGES)
-LIBBUILTIN(fmaxl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
-LIBBUILTIN(fmaxf, "ff", "fe", "math.h", ALL_LANGUAGES)
-
-LIBBUILTIN(fmin, "dd", "fe", "math.h", ALL_LANGUAGES)
-LIBBUILTIN(fminl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
-LIBBUILTIN(fminf, "ff", "fe", "math.h", ALL_LANGUAGES)
+LIBBUILTIN(fmax, "ddd", "fe", "math.h", ALL_LANGUAGES)
+LIBBUILTIN(fmaxl, "LdLdLd", "fe", "math.h", ALL_LANGUAGES)
+LIBBUILTIN(fmaxf, "fff", "fe", "math.h", ALL_LANGUAGES)
+
+LIBBUILTIN(fmin, "ddd", "fe", "math.h", ALL_LANGUAGES)
+LIBBUILTIN(fminl, "LdLdLd", "fe", "math.h", ALL_LANGUAGES)
+LIBBUILTIN(fminf, "fff", "fe", "math.h", ALL_LANGUAGES)
LIBBUILTIN(log, "dd", "fe", "math.h", ALL_LANGUAGES)
LIBBUILTIN(logl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
Modified: cfe/trunk/test/Sema/implicit-builtin-decl.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/implicit-builtin-decl.c?rev=156396&r1=156395&r2=156396&view=diff
==============================================================================
--- cfe/trunk/test/Sema/implicit-builtin-decl.c (original)
+++ cfe/trunk/test/Sema/implicit-builtin-decl.c Tue May 8 13:29:52 2012
@@ -55,3 +55,5 @@
// PR8316
void longjmp(); // expected-warning{{declaration of built-in function 'longjmp' requires inclusion of the header <setjmp.h>}}
+
+extern float fmaxf(float, float);
More information about the cfe-commits
mailing list