Ticket #8748: ghc-7.8.1_rc1-UNREG-deopt.patch

File ghc-7.8.1_rc1-UNREG-deopt.patch, 1.2 KB (added by slyfox, 4 years ago)

ghc-7.8.1_rc1-UNREG-deopt.patch

  • mk/config.mk.in

    commit 5902185c09047644be224e125f1d61717110adb9
    Author: Sergei Trofimovich <slyfox@gentoo.org>
    Date:   Thu Feb 13 13:34:57 2014 +0300
    
        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').
        
        Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    
    diff --git a/mk/config.mk.in b/mk/config.mk.in
    index b3d6995..6207cce 100644
    a b BIN_DIST_TAR_BZ2 = $(BIN_DIST_NAME)-$(TARGETPLATFORM).tar.bz2 
    422422#
    423423SRC_HC_OPTS += -H32m -O
    424424
     425# Disable -O2 optimization. Otherwise amount of generated C code
     426# makes things very slow to compile (~5 minutes on core-i7 for 'compiler/hsSyn/HsExpr.lhs')
     427# and sometimes not compile at all (powerpc64 overflows something
     428# on 'compiler/hsSyn/HsExpr.lhs').
     429ifeq "$(GhcUnregisterised)" "YES"
     430GhcStage1HcOpts=
     431GhcStage2HcOpts=
     432GhcStage3HcOpts=
     433endif
     434
    425435# -----------------------------------------------------------------------------
    426436# Names of programs in the GHC tree
    427437