On Thu, 18 Sep 2014, Joseph S. Myers wrote:

> On Thu, 18 Sep 2014, Uros Bizjak wrote:
> 
> > OK for mainline and release branches.
> 
> I've omitted ia64 from the targets in the testcase in the release branch 
> version, given the lack of any definition of FP_TRAPPING_EXCEPTIONS at all 
> there.
> 
> (I think a definition as (~_fcw & 0x3f) should work for ia64, but haven't 
> tested that.)

Here is an *untested* patch with that definition.

2014-09-19  Joseph Myers  <jos...@codesourcery.com>

        PR target/63312
        * config/ia64/sfp-machine.h (FE_EX_ALL, FP_TRAPPING_EXCEPTIONS):
        New macros.

Index: libgcc/config/ia64/sfp-machine.h
===================================================================
--- libgcc/config/ia64/sfp-machine.h    (revision 215389)
+++ libgcc/config/ia64/sfp-machine.h    (working copy)
@@ -56,6 +56,9 @@
 #define FP_EX_OVERFLOW         0x08
 #define FP_EX_UNDERFLOW                0x10
 #define FP_EX_INEXACT          0x20
+#define FP_EX_ALL \
+       (FP_EX_INVALID | FP_EX_DENORM | FP_EX_DIVZERO | FP_EX_OVERFLOW \
+        | FP_EX_UNDERFLOW | FP_EX_INEXACT)
 
 #define _FP_TININESS_AFTER_ROUNDING 1
 
@@ -67,6 +70,8 @@
       __sfp_handle_exceptions (_fex);          \
   } while (0);
 
+#define FP_TRAPPING_EXCEPTIONS (~_fcw & FP_EX_ALL)
+
 #define FP_RND_NEAREST         0
 #define FP_RND_ZERO            0xc00L
 #define FP_RND_PINF            0x800L

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to