[commit: ghc] master: rts: More forceful cc debugging flags (ccdc032)
git at git.haskell.org
git at git.haskell.org
Fri Jul 27 17:43:44 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/ccdc03286141bb8d365f122702dfd1f73376a402/ghc
>---------------------------------------------------------------
commit ccdc03286141bb8d365f122702dfd1f73376a402
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Thu Jul 26 17:21:48 2018 -0400
rts: More forceful cc debugging flags
Reviewers: simonmar, alpmestan
Reviewed By: alpmestan
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4999
>---------------------------------------------------------------
ccdc03286141bb8d365f122702dfd1f73376a402
rts/ghc.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 6154720..7de796a 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -154,7 +154,9 @@ rts_dist_$1_CC_OPTS := $$(GhcRtsCcOpts)
# The per-way CC_OPTS
ifneq "$$(findstring debug, $1)" ""
rts_dist_$1_HC_OPTS += -O0
-rts_dist_$1_CC_OPTS += -fno-omit-frame-pointer -g -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
endif
ifneq "$$(findstring dyn, $1)" ""
More information about the ghc-commits
mailing list