[commit: ghc] ghc-7.10: Upgrade GCC to 5.2.0 for Windows x86 and x86_64 (ef25c04)

git at git.haskell.org git at git.haskell.org
Thu Oct 22 15:09:18 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/ef25c045f97d740f6884ff221d981837d5c2aa5f/ghc

>---------------------------------------------------------------

commit ef25c045f97d740f6884ff221d981837d5c2aa5f
Author: Tamar Christina <tamar at zhox.com>
Date:   Wed Aug 12 13:33:13 2015 +0200

    Upgrade GCC to 5.2.0 for Windows x86 and x86_64
    
    This patch does a few things
    
    - Moved GHC x86 to MinGW-w64 (Using Awson's patch)
    - Moves Both GHCs to MSYS2 toolchains
    - Completely removes the dependencies on the git tarball repo
      - Downloads only the required tarball for the architecture for
        which we are building
      - Downloads the perl tarball is missing as well
      - Fixed a few bugs in the linker to fix tests on Windows
    
    The links currently point to repo.msys2.org and GitHub, it might be
    more desirable to mirror them on
    http://downloads.haskell.org/~ghc/mingw/ as with the previous patch
    attempt.
    
    For more details on what the MSYS2 packages I include see #10726
    (Awson's comment). but it should contain all we need
    and no python or fortran, which makes the uncompressed tar a 1-2
    hundreds mb smaller.
    
    The `GCC 5.2.0` in the package supports `libgcc` as a shared library,
    this is a problem since
    when compiling with -shared the produced dll now has a dependency on
    `libgcc_s_sjlj-1.dll`.
    To solve this the flag `-static-libgcc` is now being used for all GCC
    calls on windows.
    
    Test Plan:
    ./validate was ran both on x86 and x86_64 windows and compared against
    the baseline.
    
    A few test were failing due to Ld no longer being noisy. These were
    updated.
    
    The changes to the configure script *should* be validated by the build
    bots for the other platforms before landing
    
    Reviewers: simonmar, awson, bgamari, austin, thomie
    
    Reviewed By: thomie
    
    Subscribers: #ghc_windows_task_force, thomie, awson
    
    Differential Revision: https://phabricator.haskell.org/D1123
    
    GHC Trac Issues: #10726, #9014, #9218, #10435


>---------------------------------------------------------------

ef25c045f97d740f6884ff221d981837d5c2aa5f
 compiler/main/SysTools.hs                          |  28 +-
 configure.ac                                       | 182 ++++---
 driver/gcc/gcc.c                                   |  10 +-
 rts/Linker.c                                       | 574 +++++++++++----------
 tarballs                                           |  13 -
 testsuite/tests/driver/shared001.stderr            |   1 -
 .../tests/ghci/linking/ghcilink002.stderr-mingw32  |   1 -
 .../tests/ghci/linking/ghcilink005.stderr-mingw32  |   1 -
 testsuite/tests/rts/T5435_dyn_asm.stderr-mingw32   |   1 -
 testsuite/tests/rts/T5435_dyn_gcc.stderr-mingw32   |   1 -
 10 files changed, 452 insertions(+), 360 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc ef25c045f97d740f6884ff221d981837d5c2aa5f


More information about the ghc-commits mailing list