static int hs_init_count = 0;
/* -----------------------------------------------------------------------------
- Initialise floating point unit on x86 (currently disabled. why?)
- (see comment in ghc/compiler/nativeGen/MachInstrs.lhs).
+ Initialise floating point unit on x86 (currently disabled; See Note
+ [x86 Floating point precision] in compiler/nativeGen/X86/Instr.hs)
-------------------------------------------------------------------------- */
#define X86_INIT_FPU 0
*/
stat_startInit();
-#if defined(DEBUG)
- /* Start off by initialising the allocator debugging so we can
- * use it anywhere */
- initAllocator();
-#endif
-
/* Set the RTS flags to default values. */
initRtsFlagsDefaults();
OnExitHook();
+ // sanity check
+#if defined(DEBUG)
+ checkFPUStack();
+#endif
+
// Free the full argv storage
freeFullProgArgv();
// heap memory (e.g. by being passed a ByteArray#).
freeStorage(wait_foreign);
-#if defined(DEBUG)
- /* and shut down the allocator debugging */
- shutdownAllocator();
-#endif
-
}
// The real hs_exit():