From: Joseph Myers Date: Mon, 22 Sep 2014 11:08:03 +0000 (+0100) Subject: re PR target/63312 (FAIL: gcc.dg/torture/float128-exact-underflow.c -O0 execution... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a849e50d72a16045c089dae9773abb972faed12;p=gcc.git re PR target/63312 (FAIL: gcc.dg/torture/float128-exact-underflow.c -O0 execution test) PR target/63312 * config/ia64/sfp-machine.h (FE_EX_ALL, FP_TRAPPING_EXCEPTIONS): New macros. From-SVN: r215458 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 7c7d96509f0..9eb57755b8f 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2014-09-22 Joseph Myers + + PR target/63312 + * config/ia64/sfp-machine.h (FE_EX_ALL, FP_TRAPPING_EXCEPTIONS): + New macros. + 2014-09-22 Hans-Peter Nilsson * crtstuff.c (USE_EH_FRAME_REGISTRY): Let USE_EH_FRAME_REGISTRY_ALWAYS diff --git a/libgcc/config/ia64/sfp-machine.h b/libgcc/config/ia64/sfp-machine.h index 0769fc67c75..45e844d3daa 100644 --- a/libgcc/config/ia64/sfp-machine.h +++ b/libgcc/config/ia64/sfp-machine.h @@ -56,6 +56,9 @@ typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__))); #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 @@ void __sfp_handle_exceptions (int); __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