[Git][ghc/ghc][wip/kill-pre-c11] Remove legacy pre-C11 logic from the tree

Cheng Shao (@TerrorJack) gitlab at gitlab.haskell.org
Sat Nov 9 18:23:08 UTC 2024



Cheng Shao pushed to branch wip/kill-pre-c11 at Glasgow Haskell Compiler / GHC


Commits:
f58fab20 by Cheng Shao at 2024-11-09T18:22:11+00:00
Remove legacy pre-C11 logic from the tree

GHC has required C11 support from the C compiler since a long time
ago. This patch cleans up pre-C11 logic from the tree:

- autoconf/ghc-toolchain logic to add C99 flag into CPPFLAGS/CFLAGS
  are changed to add C11 flag instead (in practice invoked only for
  centos7 with gcc 4.8)
- Redundant CPP-logic around __GNUC__ is cleaned up. __GNUC__ >= 4 is
  universally true for all platforms and C compilers we support.
- Remove autoconf checks that are universally true on all supported
  platforms; replace some legacy GHC-specific macros with GNU C
  equivalents.
- Hash.c optimization flags is controlled by hadrian, remove the
  redundant in-file optimization pragmas.

- - - - -


30 changed files:

- configure.ac
- distrib/configure.ac.in
- docs/coding-style.html
- libraries/ghc-prim/cbits/atomic.c
- libraries/ghc-prim/cbits/ctz.c
- m4/fp_cmm_cpp_cmd_with_args.m4
- + m4/fp_set_cflags_c11.m4
- − m4/fp_set_cflags_c99.m4
- − m4/fp_visibility_hidden.m4
- rts/BeginPrivate.h
- rts/Capability.h
- rts/EndPrivate.h
- rts/Hash.c
- rts/RtsStartup.c
- rts/RtsSymbols.c
- rts/configure.ac
- rts/include/Cmm.h
- rts/include/Rts.h
- rts/include/Stg.h
- rts/include/rts/IPE.h
- rts/include/rts/Types.h
- rts/include/rts/storage/HeapAlloc.h
- rts/include/stg/DLL.h
- rts/sm/BlockAlloc.c
- rts/sm/CNF.c
- rts/sm/Evac.h
- rts/sm/GC.c
- rts/sm/GCThread.h
- rts/sm/NonMoving.h
- rts/sm/Storage.c


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f58fab20c086de10cdf289d9c1976433a1725643

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f58fab20c086de10cdf289d9c1976433a1725643
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/20241109/2f5fd621/attachment.html>


More information about the ghc-commits mailing list