diff options
author | Kazu Hirata <kazu@hxi.com> | 2001-02-12 12:32:56 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2001-02-12 12:32:56 +0000 |
commit | 823a99190da6b3498f94ab042597b53dc44636b8 (patch) | |
tree | e3343ff089004e7f5dcaefc0f3391f590b433e52 /gcc | |
parent | 1f84ec231e3abac2f8fc874a6231d337cd03897b (diff) | |
download | gcc-823a99190da6b3498f94ab042597b53dc44636b8.zip gcc-823a99190da6b3498f94ab042597b53dc44636b8.tar.gz gcc-823a99190da6b3498f94ab042597b53dc44636b8.tar.bz2 |
toplev.c (push_float_handler): Remove.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/toplev.c | 32 | ||||
-rw-r--r-- | gcc/toplev.h | 2 |
3 files changed, 6 insertions, 34 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbaa4c6..c63b610 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/toplev.c b/gcc/toplev.c index 26cc52d..7c818bd 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 093c8f8..233059a 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)); |