summaryrefslogtreecommitdiff
path: root/soft-fp/soft-fp.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-10-10 11:40:25 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-10-10 11:40:25 +0000
commitdcc2dd3f46e6cd532527ed041103633f99efb611 (patch)
tree0f47ffa370df09d1ea8f99e9ebfb92445210b2ec /soft-fp/soft-fp.h
parent2ae21ed2d2e2e0e38b84bd046bcf5f009ab417f3 (diff)
soft-fp: split FP_INIT_EXCEPTIONS from FP_INIT_ROUNDMODE.
Diffstat (limited to 'soft-fp/soft-fp.h')
-rw-r--r--soft-fp/soft-fp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/soft-fp/soft-fp.h b/soft-fp/soft-fp.h
index b1c6e619b5..8a22a11e20 100644
--- a/soft-fp/soft-fp.h
+++ b/soft-fp/soft-fp.h
@@ -101,10 +101,18 @@
#define FP_DECL_EX int _fex = 0
#endif
+/* Initialize any machine-specific state used in FP_ROUNDMODE,
+ FP_TRAPPING_EXCEPTIONS or FP_HANDLE_EXCEPTIONS. */
#ifndef FP_INIT_ROUNDMODE
#define FP_INIT_ROUNDMODE do {} while (0)
#endif
+/* Initialize any machine-specific state used in
+ FP_HANDLE_EXCEPTIONS. */
+#ifndef FP_INIT_EXCEPTIONS
+#define FP_INIT_EXCEPTIONS FP_INIT_ROUNDMODE
+#endif
+
#ifndef FP_HANDLE_EXCEPTIONS
#define FP_HANDLE_EXCEPTIONS do {} while (0)
#endif