summaryrefslogtreecommitdiff
path: root/rts/include
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2023-01-26 16:21:43 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-27 23:56:43 -0500
commit77fdbd3f7798ae7095a6a22c3674c08c86a91c6c (patch)
treeedfed1a980fa6108b3451870c93e5b36590accce /rts/include
parentc261b62f23a94df749ba23e4c2368efaddf07cbc (diff)
downloadhaskell-77fdbd3f7798ae7095a6a22c3674c08c86a91c6c.tar.gz
rts: Drop long-dead fallback definitions for INFINITY & NAN
These are no longer necessary since we now compile as C99.
Diffstat (limited to 'rts/include')
-rw-r--r--rts/include/Stg.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/rts/include/Stg.h b/rts/include/Stg.h
index c366fa0362..ed8d870e60 100644
--- a/rts/include/Stg.h
+++ b/rts/include/Stg.h
@@ -82,27 +82,6 @@
that depend on config info, such as __USE_FILE_OFFSET64 */
#include <math.h>
-// On Solaris, we don't get the INFINITY and NAN constants unless we
-// #define _STDC_C99, and we can't do that unless we also use -std=c99,
-// because _STDC_C99 causes the headers to use C99 syntax (e.g. restrict).
-// We aren't ready for -std=c99 yet, so define INFINITY/NAN by hand using
-// the gcc builtins.
-#if !defined(INFINITY)
-#if defined(__GNUC__)
-#define INFINITY __builtin_inf()
-#else
-#error No definition for INFINITY
-#endif
-#endif
-
-#if !defined(NAN)
-#if defined(__GNUC__)
-#define NAN __builtin_nan("")
-#else
-#error No definition for NAN
-#endif
-#endif
-
/* -----------------------------------------------------------------------------
Useful definitions
-------------------------------------------------------------------------- */