[commit: ghc] master: rts: Disable -fkeep-inline-functions due to lack of support on Clang (80b8540)

git at git.haskell.org git at git.haskell.org
Tue Jul 31 15:48:40 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/80b8540b8ce99036acd26d76052bd603cd68fd0b/ghc

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

commit 80b8540b8ce99036acd26d76052bd603cd68fd0b
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Jul 30 20:48:21 2018 -0400

    rts: Disable -fkeep-inline-functions due to lack of support on Clang
    
    But keep it as a comment since it is quite useful yet not very discoverable.


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

80b8540b8ce99036acd26d76052bd603cd68fd0b
 rts/ghc.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rts/ghc.mk b/rts/ghc.mk
index 7de796a..532c9aa 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -155,8 +155,9 @@ rts_dist_$1_CC_OPTS := $$(GhcRtsCcOpts)
 ifneq "$$(findstring debug, $1)" ""
 rts_dist_$1_HC_OPTS += -O0
 rts_dist_$1_CC_OPTS += -fno-omit-frame-pointer -O0 -g3
-# Useful to ensure that inline functions can be called within GDB
-rts_dist_$1_CC_OPTS += -fkeep-inline-functions
+# Useful to ensure that inline functions can be called within GDB but not
+# supported by clang
+#rts_dist_$1_CC_OPTS += -fkeep-inline-functions
 endif
 
 ifneq "$$(findstring dyn, $1)" ""



More information about the ghc-commits mailing list