summaryrefslogtreecommitdiff
path: root/cmake/os
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-11-10 16:57:15 +0100
committerSergei Golubchik <serg@mariadb.org>2015-11-16 07:55:55 +0100
commit29dd634a4c0b9c3579cf9d318ed64d748d848b1d (patch)
tree83968b769967aba2ca8236c9b2434f00b34674c6 /cmake/os
parent8f60656fd58610a7ed0b65321d229b44ab618f9a (diff)
downloadmariadb-git-29dd634a4c0b9c3579cf9d318ed64d748d848b1d.tar.gz
dbug: correct trace for DBUG_RETURN(func()); -- gcc only
when func1 calls func2 from DBUG_RETURN, dbug shows the trace as | > func1 | < func1 | > func2 | < func2 because DBUG_LEAVE happens before func2(). Change that to invoke DBUG_LEAVE when the local variable goes out of scope. This uses gcc specific __attribute__((cleanup)).
Diffstat (limited to 'cmake/os')
-rw-r--r--cmake/os/WindowsCache.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/os/WindowsCache.cmake b/cmake/os/WindowsCache.cmake
index b043b174e78..86c1e425f0c 100644
--- a/cmake/os/WindowsCache.cmake
+++ b/cmake/os/WindowsCache.cmake
@@ -320,6 +320,7 @@ IF(MSVC_VERSION GREATER 1310)
SET(HAVE_VSNPRINTF 1 CACHE INTERNAL "")
ENDIF()
SET(HAVE_WEAK_SYMBOL CACHE INTERNAL "")
+SET(HAVE_ATTRIBUTE_CLEANUP CACHE INTERNAL "")
SET(HAVE_WORDS_BIGENDIAN TRUE CACHE INTERNAL "")
SET(WORDS_BIGENDIAN CACHE INTERNAL "")
SET(HAVE__S_IFIFO 1 CACHE INTERNAL "")