Commit 823a9919 by Kazu Hirata Committed by Kazu Hirata

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
parent 1f84ec23
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.
......
......@@ -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. */
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment