(real_value_truncate): Use push/pop_float_handler.
authorRichard Stallman <rms@gnu.org>
Wed, 21 Oct 1992 21:21:25 +0000 (21:21 +0000)
committerRichard Stallman <rms@gnu.org>
Wed, 21 Oct 1992 21:21:25 +0000 (21:21 +0000)
From-SVN: r2544

gcc/fold-const.c

index 9b64082..c0aac0a 100644 (file)
@@ -777,16 +777,17 @@ real_value_truncate (mode, arg)
   volatile
 #endif
     REAL_VALUE_TYPE value;
-  jmp_buf handler;
+  jmp_buf handler, old_handler;
+  int handled;
 
   if (setjmp (handler))
     {
       error ("floating overflow");
       return dconst0;
     }
-  set_float_handler (handler);
+  handled = push_float_handler (handler, old_handler);
   value = REAL_VALUE_TRUNCATE (mode, arg);
-  set_float_handler (NULL_PTR);
+  pop_float_handler (handled, old_handler);
   return value;
 }