summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-07-26 17:23:12 -0400
committerBen Gamari <ben@smart-cactus.org>2018-07-27 12:29:40 -0400
commit40e9ec982a6f133243ca74ac7353b9be39e18c72 (patch)
treef9d54a2ece0b2a5b35365f894ea669f9a042eaa5 /includes
parentccdc03286141bb8d365f122702dfd1f73376a402 (diff)
downloadhaskell-40e9ec982a6f133243ca74ac7353b9be39e18c72.tar.gz
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
Diffstat (limited to 'includes')
-rw-r--r--includes/Stg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Stg.h b/includes/Stg.h
index 2e023470ad..19069d8c1a 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 */