Changes to ghc(11)

Changes to ghc:
commit dc080915597065087b3821b3ded0a621a7e2fae7
Author: Austin Seipp <austin@well-typed.com>
Date:   Thu Feb 13 07:17:30 2014 -0600

    Fix #8770

    As usual, Mac OS X is extremely annoying (or the software is, anyway),
    because not only does it load dynamic libraries with the .dylib
    extension, but also the .so extension. For whatever reason. At least
    it's easy to fix.

    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit a8a01e742434df11b830ab99af12d9045dfcbc4b
Author: Austin Seipp <austin@well-typed.com>
Date:   Sun Feb 16 19:14:36 2014 -0600

    Fix #8745 - GND is now -XSafe compatible.

    As discussed in the ticket, after the landing of #8773, GND is now
    -XSafe compatible.

    This fixes the test fallout as well. In particular SafeLang07 was
    removed following in the steps of SafeLang06, since it no longer failed
    from GND, but failed due to roles and was thus invalid.

    The other tests were tweaked to use TemplateHaskell instead of GND in
    order to trigger safety warnings.

    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit 5023c91780e90947680fe0640f7564a4f6448bea
Author: Austin Seipp <austin@well-typed.com>
Date:   Sun Feb 16 19:10:16 2014 -0600

    Fix #8754 in a round-about way.

    For some reason on OS X, it seems like -Bsymbolic (which we use for
    hooks into the RTS) isn't working, which results in #8754, where stats
    don't work because defaultHooks doesn't initialize the stats flag. This
    seems to work on Linux static/dynamically, but only on OS X statically.

    After talking with Simon, really, the entire hooks thing is a bit
    fragile. For now, we just work around it (since GHCi is dynamically
    linked) by calling into the defaultHooks ourselves when GHC starts.

    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit c83eabf37b884398d911609e46707df771c3fde9
Author: Austin Seipp <austin@well-typed.com>
Date:   Sun Feb 16 18:49:43 2014 -0600

    Fix check for TLS support in Storage.c

    This should have manifested earlier, but for some reason it only seemed
    to trigger on Mavericks.

    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit a365eabd465a1700f479f78ad99fc1a31915e639
Author: Austin Seipp <austin@well-typed.com>
Date:   Thu Feb 13 07:19:39 2014 -0600

    Fix installation of hpc (#8735)

    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit 2d5372cfdc2236a77ec49df249f3379b93224e06
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Thu Feb 13 07:29:50 2014 -0600

    mk/config.mk.in: lower -O2 optimization down to -O1 on UNREG

    Disable -O2 optimization. Otherwise amount of generated C code makes
    things very slow to compile (~5 minutes on core-i7 for 'compiler/hsSyn/HsExpr.lhs')

    And sometimes not compile at all (powerpc64 overflows something
    on 'compiler/hsSyn/HsExpr.lhs').

    Issue #8748

    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit 2d0fa9aee78e5bfffb9a4580954825025a651be5
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Thu Feb 13 07:29:14 2014 -0600

    rts/package.conf.in: fix UNREG on --with-system-libffi when include-dir is passed explicitely

    Issue #8748

    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit 858a807d5522145e8ede9148a15bb65a0d851c00
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Thu Feb 13 07:27:46 2014 -0600

    includes/Stg.h: add declarations for hs_popcnt and frinds

    This fixes most of implicit function declarations emitted
    C codegen in UNREG mode. Found by adding the following to
    mk/build.mk:

        SRC_CC_OPTS += -Werror=implicit-function-declaration
        SRC_HC_OPTS += -optc-Werror=implicit-function-declaration

    Issue #8748

    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit ebace6969f0ec85b1caa0fea265a5f9990a23b2e
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Thu Feb 13 07:26:05 2014 -0600

    rts/Capability.c: fix crash in -threaded mode on UNREG build

    UNREG mode has quite nasty invariant to maintain:
        capabilities[0] == &MainCapability

    and it's a non-heap memory, while other
    capabilities are dynamically allocated.

    Issue #8748

    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit 4bb50ed0c6246e2d45e22e79f5658db1fa8a58b3
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Thu Feb 13 07:23:48 2014 -0600

    Fix --enable-unregistered by declaring missing RTS functions (#8748)

    Signed-off-by: Austin Seipp <austin@well-typed.com>

commit 68f0a6a6cd5bf3374fbc4a4fb09df4cbda97b61c
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Thu Feb 13 07:23:02 2014 -0600

    Fix --enable-unregistered by passing NOSMP to .hc compiler (#8748)

    Signed-off-by: Austin Seipp <austin@well-typed.com>