ghc.git
7 years agoadd_-latomic_to_ghc-prim
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
add_-latomic_to_ghc-prim

commit ec9aacf3eb2975fd302609163aaef429962ecd87
Author: Moritz Angermann <moritz.angermann@gmail.com>
Date:   Thu Feb 8 16:07:07 2018 +0800

    adds -latomic to. ghc-prim

    Reviewers: bgamari, hvr

    Reviewed By: bgamari

    Subscribers: erikd, hvr, rwbarton, thomie, carter

    Differential Revision: https://phabricator.haskell.org/D4378

    iliastsi: The original patch fails to correctly detect and use C11
    atomics, so I modified it based on https://phabricator.haskell.org/D5154.

Gbp-Pq: Name add_-latomic_to_ghc-prim

7 years agofix-build-using-unregisterized-v8.2
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
fix-build-using-unregisterized-v8.2

.
  error: conflicting types for 'ghc_GhcPrelude_zdtrModule4_bytes'
  note: in definition of macro 'EB_'
  #define EB_(X)    extern const char X[]
  note: previous definition of 'ghc_GhcPrelude_zdtrModule4_bytes' was here
  char ghc_GhcPrelude_zdtrModule4_bytes[] = "ghc";
.
 For more information about the problem, see https://phabricator.haskell.org/D4114.
.
 This patch is a rework of https://phabricator.haskell.org/D3741.
 It modifies Stg.h to include the old definitions, if a compiler older than
 8.4 is being used.
.
 This patch can be removed, once ghc-8.2 is no longer the bootstrap compiler.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://ghc.haskell.org/trac/ghc/ticket/15201

Gbp-Pq: Name fix-build-using-unregisterized-v8.2

7 years agoarmel-revert-ghci-fixes
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
armel-revert-ghci-fixes

# This patch reverts a change which improved ghci on ARM (see
# ghc ticket #10375). While the change fixed ghci on armhf, it
# actually resulted in the ghc package FTBFS on armel since the
# changes introduced made ghc incompatible with this architecture
# (ticket #11058). As a temporary workaround, we revert this particular
# change when ghc is built on armel. For this reason, this patch
# is not applied using the series file but only selectively on
# armel with the help of debian/rules.
# .
#
#Index: ghc-8.4.1/aclocal.m4
#===================================================================
#--- ghc-8.4.1.orig/aclocal.m4
#+++ ghc-8.4.1/aclocal.m4
#@@ -651,15 +651,8 @@
#         $3="$$3 -D_HPUX_SOURCE"
#         $5="$$5 -D_HPUX_SOURCE"
#         ;;
#-    arm*linux*)
#-        # On arm/linux and arm/android, tell gcc to generate Arm
#-        # instructions (ie not Thumb).
#-        $2="$$2 -marm"
#-        $3="$$3 -Wl,-z,noexecstack"
#-        $4="$$4 -z noexecstack"
#-        ;;
#-
#-    aarch64*linux*)
#+    arm*linux* | \
#+    aarch64*linux* )
#         $3="$$3 -Wl,-z,noexecstack"
#         $4="$$4 -z noexecstack"
#         ;;
#Index: ghc-8.4.1/libraries/ghci/GHCi/InfoTable.hsc
#===================================================================
#--- ghc-8.4.1.orig/libraries/ghci/GHCi/InfoTable.hsc
#+++ ghc-8.4.1/libraries/ghci/GHCi/InfoTable.hsc
#@@ -245,17 +245,17 @@
#                  , fromIntegral ((w64 `shiftR` 32) .&. 0x0000FFFF) ]
#
#     ArchARM { } ->
#-        -- Generates Arm sequence,
#+        -- Generates Thumb sequence,
#         --      ldr r1, [pc, #0]
#         --      bx r1
#         --
#         -- which looks like:
#         --     00000000 <.addr-0x8>:
#-        --     0:       00109fe5    ldr    r1, [pc]      ; 8 <.addr>
#-        --     4:       11ff2fe1    bx     r1
#+        --     0:       4900        ldr    r1, [pc]      ; 8 <.addr>
#+        --     4:       4708        bx     r1
#         let w32 = fromIntegral (funPtrToInt a) :: Word32
#-        in Left [ 0x00, 0x10, 0x9f, 0xe5
#-                , 0x11, 0xff, 0x2f, 0xe1
#+        in Left [ 0x49, 0x00
#+                , 0x47, 0x08
#                 , byte0 w32, byte1 w32, byte2 w32, byte3 w32]
#
#     ArchARM64 { } ->

Gbp-Pq: Name armel-revert-ghci-fixes.patch

7 years agorisc-support
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
risc-support

Gbp-Pq: Name risc-support.patch

7 years agofix osReserveHeapMemory block alignment
Sergei Trofimovich [Wed, 18 Jul 2018 21:36:58 +0000 (22:36 +0100)]
fix osReserveHeapMemory block alignment

fix osReserveHeapMemory block alignment

Before the change osReserveHeapMemory() attempted
to allocate chunks of memory via osTryReserveHeapMemory()
not multiple of MBLOCK_SIZE in the following fallback code:

```
    if (at == NULL) {
        *len -= *len / 8;
```

and caused assertion failure:

```
$ make fulltest TEST=T11607 WAY=threaded1
T11607: internal error: ASSERTION FAILED: file rts/posix/OSMem.c, line 457
    (GHC version 8.7.20180716 for riscv64_unknown_linux)

```

The change applies alignment mask before each MBLOCK allocation attempt
and fixes WAY=threaded1 test failures on qemu-riscv64.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Test Plan: run 'make fulltest WAY=threaded1'

Reviewers: simonmar, bgamari, erikd

Reviewed By: simonmar

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4982

Gbp-Pq: Name e175aaf6918bb2b497b83618dc4c270a0d231a1c.patch

7 years agouse-llvm-6.0
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
use-llvm-6.0

Gbp-Pq: Name use-llvm-6.0.patch

7 years agobsymbolic-only-for-registerised
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
bsymbolic-only-for-registerised

Gbp-Pq: Name bsymbolic-only-for-registerised.patch

7 years agollvm-targets: Add versioned ARM targets
Guillaume GARDET [Fri, 18 May 2018 06:56:28 +0000 (08:56 +0200)]
llvm-targets: Add versioned ARM targets

Namely armv6l-unknown-linux-gnueabihf and
armv7l-unknown-linux-gnueabihf.

Gbp-Pq: Name llvm-targets-Add-versioned-ARM-targets.patch

7 years agouse-stage1-binaries-for-install
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
use-stage1-binaries-for-install

Gbp-Pq: Name use-stage1-binaries-for-install.patch

7 years agox32-use-native-x86_64-insn
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
x32-use-native-x86_64-insn

Gbp-Pq: Name x32-use-native-x86_64-insn.patch

7 years agobuildpath-abi-stability
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
buildpath-abi-stability

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Gbp-Pq: Name buildpath-abi-stability.patch

7 years agohurd
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
hurd

Provided by “Pino” via Samuel Thibault. Not yet pushed upstream.

Gbp-Pq: Name hurd.diff

7 years agono-missing-haddock-file-warning
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
no-missing-haddock-file-warning

Gbp-Pq: Name no-missing-haddock-file-warning

7 years agoARM-VFPv3D16
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
ARM-VFPv3D16

Gbp-Pq: Name ARM-VFPv3D16

7 years agouse-debian-gen_contents_index
Debian Haskell Group [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
use-debian-gen_contents_index

===================================================================

Gbp-Pq: Name use-debian-gen_contents_index

7 years agoghc (8.4.3+dfsg1-4) unstable; urgency=medium
Ilias Tsitsimpis [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
ghc (8.4.3+dfsg1-4) unstable; urgency=medium

  * Add missing Breaks+Replaces+Provides (Closes: #910480).
    Break+Replace+Provide all bundled libraries, including libghc-parsec3-dev.

[dgit import unpatched ghc 8.4.3+dfsg1-4]

7 years agoImport ghc_8.4.3+dfsg1-4.debian.tar.xz
Ilias Tsitsimpis [Fri, 19 Oct 2018 10:09:22 +0000 (11:09 +0100)]
Import ghc_8.4.3+dfsg1-4.debian.tar.xz

[dgit import tarball ghc 8.4.3+dfsg1-4 ghc_8.4.3+dfsg1-4.debian.tar.xz]

7 years agoImport ghc_8.4.3+dfsg1.orig.tar.xz
Ilias Tsitsimpis [Fri, 21 Sep 2018 20:05:59 +0000 (21:05 +0100)]
Import ghc_8.4.3+dfsg1.orig.tar.xz

[dgit import orig ghc_8.4.3+dfsg1.orig.tar.xz]