From 7a539874aa4bbeb4995811774db36246d14dc7ab Mon Sep 17 00:00:00 2001 From: kazu Date: Mon, 12 Feb 2001 12:32:56 +0000 Subject: [PATCH] 2001-02-12 Kazu Hirata * toplev.c (push_float_handler): Remove. (pop_float_handler): Remove. * toplev.h: Remove prototypes for the above functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39601 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/toplev.c | 32 -------------------------------- gcc/toplev.h | 2 -- 3 files changed, 6 insertions(+), 34 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbaa4c6cd60..c63b61016de 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-02-12 Kazu Hirata + + * toplev.c (push_float_handler): Remove. + (pop_float_handler): Remove. + * toplev.h: Remove prototypes for the above functions. + 2001-02-12 Jakub Jelinek * c-common.c (constant_fits_type_p): New function. diff --git a/gcc/toplev.c b/gcc/toplev.c index 26cc52d53d1..7c818bd0100 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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. */ diff --git a/gcc/toplev.h b/gcc/toplev.h index 093c8f85366..233059ac40e 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -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)); -- 2.11.4.GIT