projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff4b64
)
(real_value_truncate): Use push/pop_float_handler.
author
Richard Stallman
<rms@gnu.org>
Wed, 21 Oct 1992 21:21:25 +0000
(21:21 +0000)
committer
Richard Stallman
<rms@gnu.org>
Wed, 21 Oct 1992 21:21:25 +0000
(21:21 +0000)
From-SVN: r2544
gcc/fold-const.c
patch
|
blob
|
history
diff --git
a/gcc/fold-const.c
b/gcc/fold-const.c
index 9b64082368fa85ce1ed28021a7a23593e2e30dd2..c0aac0a1f7c0ab6cfeabf0bdde0319f15de01aaa 100644
(file)
--- a/
gcc/fold-const.c
+++ b/
gcc/fold-const.c
@@
-777,16
+777,17
@@
real_value_truncate (mode, arg)
volatile
#endif
REAL_VALUE_TYPE value;
- jmp_buf handler;
+ jmp_buf handler, old_handler;
+ int handled;
if (setjmp (handler))
{
error ("floating overflow");
return dconst0;
}
-
set_float_handler (
handler);
+
handled = push_float_handler (handler, old_
handler);
value = REAL_VALUE_TRUNCATE (mode, arg);
-
set_float_handler (NULL_PTR
);
+
pop_float_handler (handled, old_handler
);
return value;
}