aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2001-08-12 01:56:10 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-08-12 01:56:10 +0000
commit94aca342987fa4c024f4aaa32c72715787ab84e5 (patch)
tree7e0d274b9d7e3a3888aa3d22cd6cba4854e43f24 /gcc/toplev.c
parent31cdd4996b4223793a65643fcbf69163c3623258 (diff)
downloadgcc-94aca342987fa4c024f4aaa32c72715787ab84e5.zip
gcc-94aca342987fa4c024f4aaa32c72715787ab84e5.tar.gz
gcc-94aca342987fa4c024f4aaa32c72715787ab84e5.tar.bz2
toplev.c (set_float_handler): Make static.
* toplev.c (set_float_handler): Make static. * toplev.h: Don't prototype set_float_handler. * simplify-rtx.c: Don't include setjmp.h. (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1): New functions. (simplify_unary_operation, simplify_binary_operation): Use them, via do_float_handler. * fold-const.c: Don't include setjmp.h. (exact_real_inverse_1): New function. (exact_real_inverse): Use it, via do_float_handler. * varasm.c: Don't include setjmp.h. (assemble_real_1): New function. (assemble_real): Use it, via do_float_handler. Call internal_error if we get a trap here. * c-parse.in, cse.c, cselib.c, ch/lex.c, config/i386/i386.c, config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h. * java/lex.h: Don't include setjmp.h. Don't define SET_FLOAT_HANDLER or prototype set_float_handler. From-SVN: r44815
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index a2d489d..5764626 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -161,6 +161,7 @@ static const char *decl_name PARAMS ((tree, int));
static void float_signal PARAMS ((int)) ATTRIBUTE_NORETURN;
static void crash_signal PARAMS ((int)) ATTRIBUTE_NORETURN;
+static void set_float_handler PARAMS ((jmp_buf));
static void compile_file PARAMS ((const char *));
static void display_help PARAMS ((void));
static void display_target_options PARAMS ((void));
@@ -1679,7 +1680,7 @@ float_signal (signo)
/* Specify where to longjmp to when a floating arithmetic error happens.
If HANDLER is 0, it means don't handle the errors any more. */
-void
+static void
set_float_handler (handler)
jmp_buf handler;
{