[Git][ghc/ghc][wip/rip-stdcall] 4 commits: libraries/utils: remove stdcall related legacy logic

Cheng Shao (@TerrorJack) gitlab at gitlab.haskell.org
Fri May 31 22:39:47 UTC 2024



Cheng Shao pushed to branch wip/rip-stdcall at Glasgow Haskell Compiler / GHC


Commits:
2185654d by Cheng Shao at 2024-05-31T22:38:34+00:00
libraries/utils: remove stdcall related legacy logic

This commit removes stdcall related legacy logic in libraries and
utils. ccall should be used uniformly for all supported windows hosts
from now on.

- - - - -
2512b24f by Cheng Shao at 2024-05-31T22:38:42+00:00
testsuite: adapt the testsuite for stdcall removal

This patch adjusts test cases to handle the stdcall removal:

- Some stdcall usages are replaced with ccall since stdcall doesn't
  make sense anymore.
- We also preserve some stdcall usages, and check in the expected
  warning messages to ensure GHC always warn about stdcall usages
  (-Wunsupported-calling-conventions) as expected.
- Error code testsuite coverage is slightly improved,
  -Wunsupported-calling-conventions is now tested.

- - - - -
6f9fa4da by Cheng Shao at 2024-05-31T22:38:42+00:00
docs: minor adjustments for stdcall removal

This commit include minor adjustments of documentation related to
stdcall removal.

- - - - -
12339326 by Cheng Shao at 2024-05-31T22:38:42+00:00
docs: mention i386 Windows removal in 9.12 changelog

This commit mentions removal of i386 Windows support and stdcall
related change in the 9.12 changelog.

- - - - -


30 changed files:

- docs/users_guide/9.12.1-notes.rst
- docs/users_guide/using-warnings.rst
- docs/users_guide/win32-dlls.rst
- − libraries/ghc-internal/include/windows_cconv.h
- libraries/ghc-internal/src/GHC/Internal/Conc/POSIX.hs
- libraries/ghc-internal/src/GHC/Internal/Conc/Windows.hs
- libraries/ghc-internal/src/GHC/Internal/Environment.hs
- libraries/ghc-internal/src/GHC/Internal/Event/Windows.hsc
- libraries/ghc-internal/src/GHC/Internal/Event/Windows/FFI.hsc
- libraries/ghc-internal/src/GHC/Internal/IO/Encoding/CodePage.hs
- libraries/ghc-internal/src/GHC/Internal/IO/Encoding/CodePage/API.hs
- libraries/ghc-internal/src/GHC/Internal/IO/FD.hs
- libraries/ghc-internal/src/GHC/Internal/IO/Handle/Lock/Windows.hsc
- libraries/ghc-internal/src/GHC/Internal/IO/Windows/Encoding.hs
- libraries/ghc-internal/src/GHC/Internal/IO/Windows/Handle.hsc
- libraries/ghc-internal/src/GHC/Internal/IO/Windows/Paths.hs
- libraries/ghc-internal/src/GHC/Internal/System/Environment.hs
- libraries/ghc-internal/src/GHC/Internal/System/Environment/Blank.hsc
- libraries/ghc-internal/src/GHC/Internal/System/Environment/ExecutablePath.hsc
- libraries/ghc-internal/src/GHC/Internal/Windows.hs
- testsuite/tests/concurrent/should_run/T5611.hs
- testsuite/tests/concurrent/should_run/T5611a.hs
- testsuite/tests/concurrent/should_run/conc036.hs
- testsuite/tests/concurrent/should_run/conc037.hs
- testsuite/tests/concurrent/should_run/conc038.hs
- testsuite/tests/concurrent/should_run/foreignInterruptible.hs
- testsuite/tests/diagnostic-codes/codes.stdout
- testsuite/tests/ffi/should_compile/all.T
- testsuite/tests/ffi/should_compile/cc004.hs
- + testsuite/tests/ffi/should_compile/cc004.stderr


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/2808b78cf3070e828bad645e984acc3b4e9db859...123393267c5ff0ab61359d5660df237557816309

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/2808b78cf3070e828bad645e984acc3b4e9db859...123393267c5ff0ab61359d5660df237557816309
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240531/34c15e93/attachment.html>


More information about the ghc-commits mailing list