[commit: ghc] master: Don't use -finline-limit with Clang. (eeeec4f)

Austin Seipp mad.one at gmail.com
Fri Jun 21 07:25:27 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/eeeec4f2c34d7bc7ca2882550a181bf80368d32d

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

commit eeeec4f2c34d7bc7ca2882550a181bf80368d32d
Author: Austin Seipp <aseipp at pobox.com>
Date:   Fri Jun 21 00:10:26 2013 -0500

    Don't use -finline-limit with Clang.
    
    It's unsupported.
    
    Signed-off-by: Austin Seipp <aseipp at pobox.com>

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

 rts/ghc.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rts/ghc.mk b/rts/ghc.mk
index 22ca596..fef49d4 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -423,7 +423,9 @@ rts/win32/ThrIOManager_CC_OPTS += -w
 # for details
 
 # Without this, thread_obj will not be inlined (at least on x86 with GCC 4.1.0)
+ifneq "$(CC_CLANG_BACKEND)" "1"
 rts/sm/Compact_CC_OPTS += -finline-limit=2500
+endif
 
 # -O3 helps unroll some loops (especially in copy() with a constant argument).
 rts/sm/Evac_CC_OPTS += -funroll-loops





More information about the ghc-commits mailing list