[PATCH] [RFC][14/17]TILE-Gx: Fix native build FEnv.h issue for tilegx

Jiong WANG wong.kwongyuan.llvm at gmail.com
Mon Mar 11 01:25:16 PDT 2013


tilegx deliver fenv.h in a broken way, no support of some macro. this patch prevent related code to compiling.

Please review, thanks.
---
Regards,
Jiong
Tilera Corporation

http://llvm-reviews.chandlerc.com/D524

Files:
  include/llvm/Support/FEnv.h

Index: include/llvm/Support/FEnv.h
===================================================================
--- include/llvm/Support/FEnv.h
+++ include/llvm/Support/FEnv.h
@@ -43,10 +43,14 @@
   int errno_val = errno;
   if (errno_val == ERANGE || errno_val == EDOM)
     return true;
+#ifdef __tile__
+  return false;
+#else
 #ifdef HAVE_FENV_H
   if (fetestexcept(FE_ALL_EXCEPT & ~FE_INEXACT))
     return true;
 #endif
+#endif // __tile__
   return false;
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D524.1.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130311/ed63a6c6/attachment.bin>


More information about the llvm-commits mailing list