[cfe-commits] r149210 - in /cfe/trunk: lib/Headers/tgmath.h test/Modules/compiler_builtins.m

Douglas Gregor dgregor at apple.com
Sun Jan 29 14:47:19 PST 2012


Author: dgregor
Date: Sun Jan 29 16:47:19 2012
New Revision: 149210

URL: http://llvm.org/viewvc/llvm-project?rev=149210&view=rev
Log:
Alternate fix to the modules failures that doesn't require us to tweak tgmath.h

Modified:
    cfe/trunk/lib/Headers/tgmath.h
    cfe/trunk/test/Modules/compiler_builtins.m

Modified: cfe/trunk/lib/Headers/tgmath.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/tgmath.h?rev=149210&r1=149209&r2=149210&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/tgmath.h (original)
+++ cfe/trunk/lib/Headers/tgmath.h Sun Jan 29 16:47:19 2012
@@ -26,7 +26,6 @@
 #define __TGMATH_H
 
 /* C99 7.22 Type-generic math <tgmath.h>. */
-#if __has_include(<math.h>)
 #include <math.h>
 
 /* C++ handles type genericity with overloading in math.h. */
@@ -1355,5 +1354,4 @@
 #undef _TG_ATTRS
 
 #endif /* __cplusplus */
-#endif /* __has_include(<math.h>) */
 #endif /* __TGMATH_H */

Modified: cfe/trunk/test/Modules/compiler_builtins.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/compiler_builtins.m?rev=149210&r1=149209&r2=149210&view=diff
==============================================================================
--- cfe/trunk/test/Modules/compiler_builtins.m (original)
+++ cfe/trunk/test/Modules/compiler_builtins.m Sun Jan 29 16:47:19 2012
@@ -1,5 +1,5 @@
 // RUN: rm -rf %t
-// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -verify %s
+// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t -Xclang -verify %s
 
 @import __compiler_builtins.float_constants;
 





More information about the cfe-commits mailing list