[commit: ghc] master: Disable GNUC_ATTR_HOT when compiling with DEBUG (40e9ec9)
git at git.haskell.org
git at git.haskell.org
Fri Jul 27 17:43:47 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/40e9ec982a6f133243ca74ac7353b9be39e18c72/ghc
>---------------------------------------------------------------
commit 40e9ec982a6f133243ca74ac7353b9be39e18c72
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Thu Jul 26 17:23:12 2018 -0400
Disable GNUC_ATTR_HOT when compiling with DEBUG
Test Plan: Validate
Reviewers: simonmar
Reviewed By: simonmar
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D5000
>---------------------------------------------------------------
40e9ec982a6f133243ca74ac7353b9be39e18c72
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