[Git][ghc/ghc][wip/kill-pre-c11-with-centos7-fix] 2 commits: Remove legacy pre-C11 logic from the tree
Cheng Shao (@TerrorJack)
gitlab at gitlab.haskell.org
Sat Nov 9 18:24:39 UTC 2024
Cheng Shao pushed to branch wip/kill-pre-c11-with-centos7-fix 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.
- - - - -
196ae82d by Cheng Shao at 2024-11-09T18:24:30+00:00
testsuite: fix process010 for centos7 job
(cherry picked from commit f94510df6e93b0378aedf730d0caba7a595d1b94)
- - - - -
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/-/compare/eaf67aaad3b454fcad0fc55db64ff6fbc7084e96...196ae82df7a0743f940aeeddd155ede614b4f22e
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/eaf67aaad3b454fcad0fc55db64ff6fbc7084e96...196ae82df7a0743f940aeeddd155ede614b4f22e
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/a5d1f654/attachment.html>
More information about the ghc-commits
mailing list