[Git][ghc/ghc][wip/andreask/ci_validate] 2 commits: Linker.c: Only define freeNativeCode_ELF when using elf format.

Andreas Klebinger gitlab at gitlab.haskell.org
Wed Nov 25 15:07:42 UTC 2020



Andreas Klebinger pushed to branch wip/andreask/ci_validate at Glasgow Haskell Compiler / GHC


Commits:
aff226d5 by Andreas Klebinger at 2020-11-25T12:38:38+01:00
Linker.c: Only define freeNativeCode_ELF when using elf format.

- - - - -
cb8f1cb0 by Andreas Klebinger at 2020-11-25T12:38:38+01:00
Use validate flavour for all CI builds.

This also means we compile GHC with -O1 instead of -O2 for some
platforms for CI. As a result a lot of test metrics
got worse which we now have to accept.

-------------------------
Metric Increase:
    ManyAlternatives
    ManyConstructors
    MultiLayerModules
    Naperian
    T10421
    T12150
    T12227
    T12234
    T12425
    T12545
    T12707
    T13035
    T13253
    T13253-spj
    T13379
    T13719
    T14697
    T18282
    T18698a
    T18698b
    T1969
    T3064
    T3294
    T4801
    T5321FD
    T5321Fun
    T5631
    T6048
    T783
    T9020
    T9203
    T9233
    T9872a
    T9872b
    T9872c
    T9872d
    T9961
    haddock.Cabal
    haddock.base
    parsing001
-------------------------

- - - - -


2 changed files:

- .gitlab-ci.yml
- rts/Linker.c


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -442,7 +442,7 @@ validate-x86_64-darwin:
     LANG: "en_US.UTF-8"
     CONFIGURE_ARGS: "--with-intree-gmp"
     TEST_ENV: "x86_64-darwin"
-    BUILD_FLAVOUR: "perf"
+    BUILD_FLAVOUR: "validate"
   after_script:
     - cp -Rf $HOME/.cabal cabal-cache
     - .gitlab/ci.sh clean
@@ -493,7 +493,7 @@ validate-x86_64-darwin:
   tags:
     - x86_64-linux
   variables:
-    BUILD_FLAVOUR: "perf"
+    BUILD_FLAVOUR: "validate"
   before_script:
       # Build hyperlinked sources for documentation when building releases
     - |


=====================================
rts/Linker.c
=====================================
@@ -171,7 +171,9 @@ Mutex linker_mutex;
 /* Generic wrapper function to try and Resolve and RunInit oc files */
 int ocTryLoad( ObjectCode* oc );
 
+#if defined(OBJFORMAT_ELF)
 static void freeNativeCode_ELF (ObjectCode *nc);
+#endif
 
 /* Link objects into the lower 2Gb on x86_64 and AArch64.  GHC assumes the
  * small memory model on this architecture (see gcc docs,



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/1966559b15aad7db863dff47f5422aafa7086694...cb8f1cb04177174e0338f7ad59392625488a6ef2

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/1966559b15aad7db863dff47f5422aafa7086694...cb8f1cb04177174e0338f7ad59392625488a6ef2
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/20201125/6b287f83/attachment-0001.html>


More information about the ghc-commits mailing list