diff options
Diffstat (limited to 'common/recipes-devtools/codexl/codexl/0021-AMDTPowerProfileApi-fix-build-issues.patch')
-rw-r--r-- | common/recipes-devtools/codexl/codexl/0021-AMDTPowerProfileApi-fix-build-issues.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/common/recipes-devtools/codexl/codexl/0021-AMDTPowerProfileApi-fix-build-issues.patch b/common/recipes-devtools/codexl/codexl/0021-AMDTPowerProfileApi-fix-build-issues.patch deleted file mode 100644 index 1a50ec2f..00000000 --- a/common/recipes-devtools/codexl/codexl/0021-AMDTPowerProfileApi-fix-build-issues.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 683c17574ab3c2df7891428ce23eac78332526a3 Mon Sep 17 00:00:00 2001 -From: Awais Belal <awais_belal@mentor.com> -Date: Wed, 16 Nov 2016 15:15:35 +0500 -Subject: [PATCH] AMDTPowerProfileApi: fix build issues - -The nearbyint implementation requires math.h to be -appropriately found by the compiler. -Also fix warnings from gcc6 regarding left-shift of -negative number. - -Signed-off-by: Awais Belal <awais_belal@mentor.com> ---- - .../Backend/AMDTPowerProfileAPI/src/AMDTPowerProfileApi.cpp | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/CodeXL/Components/PowerProfiling/Backend/AMDTPowerProfileAPI/src/AMDTPowerProfileApi.cpp b/CodeXL/Components/PowerProfiling/Backend/AMDTPowerProfileAPI/src/AMDTPowerProfileApi.cpp -index 4629d3e..3996392 100755 ---- a/CodeXL/Components/PowerProfiling/Backend/AMDTPowerProfileAPI/src/AMDTPowerProfileApi.cpp -+++ b/CodeXL/Components/PowerProfiling/Backend/AMDTPowerProfileAPI/src/AMDTPowerProfileApi.cpp -@@ -33,6 +33,7 @@ - #include <sys/time.h> - #include <unistd.h> - #include <stdlib.h> -+#include <math.h> - void __attribute__((constructor)) initPowerProfileDriverInterface(void); - void __attribute__((destructor)) finiPowerProfileDriverInterface(void); - -@@ -751,7 +752,7 @@ AMDTUInt32 PwrGetCoreMask() - - if (PROFILE_TYPE_PROCESS_PROFILING == g_profileType) - { -- mask = ~0 ^ (~0 << g_sysInfo.m_coreCnt); -+ mask = ~((AMDTUInt32)0) ^ (~((AMDTUInt32)0) << g_sysInfo.m_coreCnt); - } - else - { --- -1.9.1 - |