From 40e9ec982a6f133243ca74ac7353b9be39e18c72 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 26 Jul 2018 17:23:12 -0400 Subject: 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 --- includes/Stg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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 */ -- cgit v1.2.1