OSDN Git Service

PR optimization/9651
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Feb 2003 20:43:06 +0000 (20:43 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Feb 2003 20:43:06 +0000 (20:43 +0000)
        * rtlanal.c (may_trap_p): Handle FIX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62717 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/rtlanal.c

index f6669b0..4cbfcb6 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 5e06770..4c6024a 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.  */