[llvm-commits] [llvm] r114368 - /llvm/trunk/include/llvm/System/FEnv.h

Dan Gohman gohman at apple.com
Mon Sep 20 15:32:25 PDT 2010


Author: djg
Date: Mon Sep 20 17:32:25 2010
New Revision: 114368

URL: http://llvm.org/viewvc/llvm-project?rev=114368&view=rev
Log:
Relax this check to silently swallow FE_INEXACT, following directions
from rdar://8452472. This unbreaks gcc.dg/builtins-17.c.

Modified:
    llvm/trunk/include/llvm/System/FEnv.h

Modified: llvm/trunk/include/llvm/System/FEnv.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/FEnv.h?rev=114368&r1=114367&r2=114368&view=diff
==============================================================================
--- llvm/trunk/include/llvm/System/FEnv.h (original)
+++ llvm/trunk/include/llvm/System/FEnv.h Mon Sep 20 17:32:25 2010
@@ -38,7 +38,7 @@
   if (errno_val == ERANGE || errno_val == EDOM)
     return true;
 #ifdef HAVE_FENV_H
-  if (fetestexcept(FE_ALL_EXCEPT))
+  if (fetestexcept(FE_ALL_EXCEPT & ~FE_INEXACT))
     return true;
 #endif
   return false;





More information about the llvm-commits mailing list