re PR rtl-optimization/9651 ([Alpha] FPE with NAN in spite of isnan protection)
authorFalk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Tue, 11 Feb 2003 20:43:06 +0000 (20:43 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 11 Feb 2003 20:43:06 +0000 (12:43 -0800)
        PR optimization/9651
        * rtlanal.c (may_trap_p): Handle FIX.

From-SVN: r62717

gcc/ChangeLog
gcc/rtlanal.c

index f6669b067438805764bf55d9d5167aaaa3cc3186..4cbfcb6eb0b462143fad2e6404d967a95fa4a0fe 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
+
+       PR optimization/9651
+       * rtlanal.c (may_trap_p): Handle FIX.
+
 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
 
        * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
index 5e0677066a8756c1fb96e878410141418855efdb..4c6024a63f579b9e961996fd7b28a4cc2f73d13a 100644 (file)
@@ -2517,6 +2517,18 @@ may_trap_p (x)
        return 1;
       break;
 
+    case FIX:
+      /* Conversion of floating point might trap.  */
+      if (flag_trapping_math && HONOR_NANS (GET_MODE (XEXP (x, 0))))
+       return 1;
+      break;
+
+    case FIX:
+      /* Conversion of floating point might trap.  */
+      if (flag_trapping_math && HONOR_NANS (GET_MODE (XEXP (x, 0))))
+       return 1;
+      break;
+
     case NEG:
     case ABS:
       /* These operations don't trap even with floating point.  */