[Git][ghc/ghc][wip/toolchain-selection] 35 commits: Rip out runtime linker/compiler checks

Rodrigo Mesquita (@alt-romes) gitlab at gitlab.haskell.org
Mon May 29 14:29:41 UTC 2023



Rodrigo Mesquita pushed to branch wip/toolchain-selection at Glasgow Haskell Compiler / GHC


Commits:
781ba709 by Ben Gamari at 2023-05-29T15:29:29+01:00
Rip out runtime linker/compiler checks

- - - - -
8ee8993e by Ben Gamari at 2023-05-29T15:29:29+01:00
configure: Rip out toolchain selection logic

- - - - -
5fcc41e2 by Ben Gamari at 2023-05-29T15:29:29+01:00
Fixes

- - - - -
bcedb7f5 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ghc-toolchain: Rename readProcess to readProcessStdout

Fixes bugs regarding a translation from the original autconf program
that failed to account for the exit code.

The longer name reenforces that we really only care about the stdout,
and the exit code and stderr of the program are irrelevant for the case.

- - - - -
208c3810 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Re-introduce ld-override option

- - - - -
41fdf1a1 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ROMES:WIP

- - - - -
c9ce9f23 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ghc-toolchain library and usage in hadrian flags

- - - - -
fcc41b6a by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ROMES: WIP

- - - - -
1a53b229 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Re-introduce flags in hadrian config

- - - - -
724d1d6a by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ROMES WIP

- - - - -
4cdc3bd1 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ghc-toolchain: UseLibFFI, LdCompactUnwind, LdFileList

A more complete ghc-toolchain.
Added configuration of:

* Use libffi for adjustors
* Supports compact unwind
* Supports filelist

- - - - -
5165fb65 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Handle passing CPP cmd and flags from configure to ghc-toolchain

- - - - -
ab644676 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Rip more of configure that is no longer being used

- - - - -
cbf8b999 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Remove configure checks of GNUnoexecStack and ident directive

And fix bug in ghc-toolchain respective code

- - - - -
df908348 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Rip out more from hadrians system.config.in

- - - - -
9a650eb4 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Configure CLink supports response files

- - - - -
cc5d28dc by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Read deleted keys from host and target's target

- - - - -
dd94a5b9 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ROMES: WIP 3

- - - - -
f6aefa59 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Delete CMD_OPTS_STAGEX

Instead of having configure configure different options for different
programs depend on the stage, we delete this completely and have hadrian
select the correct target toolchain configuration file depending on the
stage, from which it can read those options.

- - - - -
1e0f5be4 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Fix [host|target]-[os|arch] vs [host|target]-haskell-[os|arch]

- - - - -
0c029140 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Handle unspecified vs specified flags and commands better

- - - - -
d45f9011 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ROMES: WIP 4

- - - - -
d54b700d by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Configure Cpp and HsCpp separately

- - - - -
5c09ce87 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Fixes for compilation

- - - - -
5a9b5435 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Link is GNU linkerg

- - - - -
0a950c24 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
ROMES: WIP 5

- - - - -
3fa1419b by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Revert "Rip more of configure that is no longer being used"

I realized we still need this function in rts/configure.ac

This reverts commit 01f5d4b480f4ab1514ac0a4fc957db199d1a0279.

- - - - -
7f1d18b6 by Rodrigo Mesquita at 2023-05-29T15:29:29+01:00
Revert get_arm_isa deletion from 74f03f243d08aa910d39cdd9dadb976e9386283a

As in the previous commit, we still need this info from the rts
configure script.

I suppose it could be useful for the rts to also read somehow the
toolchain information...

- - - - -
21903644 by Rodrigo Mesquita at 2023-05-29T15:29:30+01:00
helper AC function for enable/disable

- - - - -
2075557f by Rodrigo Mesquita at 2023-05-29T15:29:30+01:00
Delete unused imports of SysTools.Info

- - - - -
75e0cf33 by Rodrigo Mesquita at 2023-05-29T15:29:30+01:00
Drop PROG_CPP in distrib/autoconf too

- - - - -
66c7081c by Rodrigo Mesquita at 2023-05-29T15:29:30+01:00
Delete trailing whitespace

- - - - -
06b10d82 by Rodrigo Mesquita at 2023-05-29T15:29:30+01:00
Delete trailing whitespace

- - - - -
e1b8af60 by Rodrigo Mesquita at 2023-05-29T15:29:30+01:00
Get rid of MonadCatch instances and dependencies

- - - - -
0b617125 by Rodrigo Mesquita at 2023-05-29T15:29:30+01:00
ghc-toolchain: Check Cc supports extra-via-c-flags

- - - - -


30 changed files:

- compiler/GHC/Driver/Backend.hs
- compiler/GHC/Driver/DynFlags.hs
- compiler/GHC/Driver/Main.hs
- compiler/GHC/Driver/Pipeline/Execute.hs
- compiler/GHC/Linker/ExtraObj.hs
- compiler/GHC/Linker/Static.hs
- compiler/GHC/SysTools.hs
- compiler/GHC/SysTools/Info.hs
- compiler/GHC/SysTools/Tasks.hs
- configure.ac
- distrib/configure.ac.in
- hadrian/bindist/config.mk.in
- hadrian/cabal.project
- hadrian/cfg/system.config.in
- hadrian/hadrian.cabal
- hadrian/src/Base.hs
- hadrian/src/Builder.hs
- hadrian/src/Context.hs
- hadrian/src/Hadrian/Haskell/Hash.hs
- hadrian/src/Hadrian/Oracles/TextFile.hs
- hadrian/src/Oracles/Flag.hs
- hadrian/src/Oracles/Setting.hs
- hadrian/src/Rules/BinaryDist.hs
- hadrian/src/Rules/Generate.hs
- hadrian/src/Rules/Gmp.hs
- hadrian/src/Rules/Libffi.hs
- hadrian/src/Rules/Test.hs
- hadrian/src/Settings/Builders/Cabal.hs
- hadrian/src/Settings/Builders/Cc.hs
- hadrian/src/Settings/Builders/DeriveConstants.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/e78dd2e19a1b556d77ba1ee4e79e964e2002dac3...0b6171256ba95491f5cfd328a55a7fbfc8a37060

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/e78dd2e19a1b556d77ba1ee4e79e964e2002dac3...0b6171256ba95491f5cfd328a55a7fbfc8a37060
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/20230529/8e8bd43e/attachment-0001.html>


More information about the ghc-commits mailing list