[compiler-rt] r249516 - builtins: fix build

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 20:30:03 PDT 2015


Author: compnerd
Date: Tue Oct  6 22:30:02 2015
New Revision: 249516

URL: http://llvm.org/viewvc/llvm-project?rev=249516&view=rev
Log:
builtins: fix build

__GNUC__ indicates the GNU compiler, not __GNU__.  This got through due to
building with clang rather than gcc.

Modified:
    compiler-rt/trunk/lib/builtins/int_math.h

Modified: compiler-rt/trunk/lib/builtins/int_math.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/int_math.h?rev=249516&r1=249515&r2=249516&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/int_math.h (original)
+++ compiler-rt/trunk/lib/builtins/int_math.h Tue Oct  6 22:30:02 2015
@@ -48,7 +48,7 @@
  */
 #if __has_builtin(__builtin_isfinite)
 #  define crt_isfinite(x) __builtin_isfinite((x))
-#elif defined(__GNU__)
+#elif defined(__GNUC__)
 #  define crt_isfinite(x) \
   __extension__(({ \
       __typeof((x)) x_ = (x); \




More information about the llvm-commits mailing list