toplev.c (push_float_handler): Remove.
authorKazu Hirata <kazu@hxi.com>
Mon, 12 Feb 2001 12:32:56 +0000 (12:32 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 12 Feb 2001 12:32:56 +0000 (12:32 +0000)
2001-02-12  Kazu Hirata  <kazu@hxi.com>

* toplev.c (push_float_handler): Remove.
(pop_float_handler): Remove.
* toplev.h: Remove prototypes for the above functions.

From-SVN: r39601

gcc/ChangeLog
gcc/toplev.c
gcc/toplev.h

index fbaa4c6..c63b610 100644 (file)
@@ -1,3 +1,9 @@
+2001-02-12  Kazu Hirata  <kazu@hxi.com>
+
+       * toplev.c (push_float_handler): Remove.
+       (pop_float_handler): Remove.
+       * toplev.h: Remove prototypes for the above functions.
+
 2001-02-12  Jakub Jelinek  <jakub@redhat.com>
 
        * c-common.c (constant_fits_type_p): New function.
index 26cc52d..7c818bd 100644 (file)
@@ -1662,38 +1662,6 @@ do_float_handler (fn, data)
   return 1;
 }
 
-/* Specify, in HANDLER, where to longjmp to when a floating arithmetic
-   error happens, pushing the previous specification into OLD_HANDLER.
-   Return an indication of whether there was a previous handler in effect.  */
-
-int
-push_float_handler (handler, old_handler)
-     jmp_buf handler, old_handler;
-{
-  int was_handled = float_handled;
-
-  float_handled = 1;
-  if (was_handled)
-    memcpy ((char *) old_handler, (char *) float_handler,
-          sizeof (float_handler));
-
-  memcpy ((char *) float_handler, (char *) handler, sizeof (float_handler));
-  return was_handled;
-}
-
-/* Restore the previous specification of whether and where to longjmp to
-   when a floating arithmetic error happens.  */
-
-void
-pop_float_handler (handled, handler)
-     int handled;
-     jmp_buf handler;
-{
-  float_handled = handled;
-  if (handled)
-    bcopy ((char *) handler, (char *) float_handler, sizeof (float_handler));
-}
-
 /* Handler for fatal signals, such as SIGSEGV.  These are transformed
    into ICE messages, which is much more user friendly.  */
 
index 093c8f8..233059a 100644 (file)
@@ -108,8 +108,6 @@ extern void warning_for_asm         PARAMS ((struct rtx_def *,
                                               ATTRIBUTE_PRINTF_2;
 #if defined (_JBLEN) || defined (setjmp)
 extern void set_float_handler PARAMS ((jmp_buf));
-extern int push_float_handler PARAMS ((jmp_buf, jmp_buf));
-extern void pop_float_handler PARAMS ((int, jmp_buf));
 #endif
 extern int do_float_handler PARAMS ((void (*) (PTR), PTR));