summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2016-09-01 21:30:07 +0100
committerTamar Christina <tamar@zhox.com>2016-09-01 21:31:52 +0100
commite5ecb2010514405ac1b9b1285a8a65c00a5fd4e0 (patch)
tree866ae612180fb7fab7af9281d8f43980ec6718e1 /docs
parentf233f00b1915ac6c0a200b8017a9f07deefd401e (diff)
downloadhaskell-e5ecb2010514405ac1b9b1285a8a65c00a5fd4e0.tar.gz
Added support for deprecated POSIX functions on Windows.
Summary: With the introduction of 8.0.1 We've stopped supporting in GHCi the use of POSIX functions under their deprecated names on Windows. This to be compatible with object and libraries from the most popular compilers on the platform (Microsoft and Intel compilers). However this brings a confusing disparity between the compiled and interpreted behavior since MingW-W64 does support the deprecated names. Also It seems clear that package writers won't update their packages to properly support Windows. As such I have added redirects in the RTS for the deprecated functions as listed on https://msdn.microsoft.com/en-us/library/ms235384.aspx. This won't export the functions (as in, they won't be in the symbol table of compiled code for the RTS.) but we inject them into the symbol table of the dynamic linker at startup. Test Plan: ./validate and make test TEST="ffi017 ffi021" Reviewers: thomie, simonmar, RyanGlScott, bgamari, austin, hvr, erikd Reviewed By: simonmar, bgamari Subscribers: RyanGlScott, #ghc_windows_task_force Differential Revision: https://phabricator.haskell.org/D2500 GHC Trac Issues: #12209, #12497, #12496
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/8.0.2-notes.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/users_guide/8.0.2-notes.rst b/docs/users_guide/8.0.2-notes.rst
index 09ba5720a5..66cbe31c81 100644
--- a/docs/users_guide/8.0.2-notes.rst
+++ b/docs/users_guide/8.0.2-notes.rst
@@ -33,6 +33,16 @@ Compiler
initial cmm from STG-to-C-- code generation and :ghc-flag:`-ddump-cmm-verbose`
to obtain the intermediates from all C-- pipeline stages.
+Runtime system
+~~~~~~~~~~~~~~
+
+- The Runtime linker on Windows is once again recognizing POSIX functions under their
+ "deprecated" name. e.g. "strdup" will now be recognizes and internally forwarded to "_strdup".
+ If you have existing code already using the correct names (e.g. _strdup) then this will just continue
+ to work and no change is needed. For more information about how the forwarding is done please see
+ `MSDN <https://msdn.microsoft.com/en-us/library/ms235384.aspx>`_ . This should now introduce the same behavior
+ both compiled and interpreted. (see :ghc-ticket:`12497`).
+
- Added :ghc-flag:`-fdefer-out-of-scope-variables`, which converts variable
out of scope variables errors into warnings.