[commit: ghc] wip/enable-freebsd-ci: Disable GNUC_ATTR_HOT when compiling with DEBUG (6649bac)
git at git.haskell.org
git at git.haskell.org
Tue Jul 24 15:44:03 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/enable-freebsd-ci
Link : http://ghc.haskell.org/trac/ghc/changeset/6649bac9add3722204df467bc52b0b82742f1709/ghc
>---------------------------------------------------------------
commit 6649bac9add3722204df467bc52b0b82742f1709
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sun Jul 22 10:08:48 2018 -0400
Disable GNUC_ATTR_HOT when compiling with DEBUG
This makes gdb'ing much easier.
>---------------------------------------------------------------
6649bac9add3722204df467bc52b0b82742f1709
includes/Stg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/includes/Stg.h b/includes/Stg.h
index 2e02347..19069d8 100644
--- a/includes/Stg.h
+++ b/includes/Stg.h
@@ -196,7 +196,7 @@
#define GNUC3_ATTRIBUTE(at)
#endif
-#if __GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 3
+#if !defined(DEBUG) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
#define GNUC_ATTR_HOT __attribute__((hot))
#else
#define GNUC_ATTR_HOT /* nothing */
More information about the ghc-commits
mailing list