diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-11-10 16:57:15 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-11-16 07:55:55 +0100 |
commit | 29dd634a4c0b9c3579cf9d318ed64d748d848b1d (patch) | |
tree | 83968b769967aba2ca8236c9b2434f00b34674c6 /cmake/os | |
parent | 8f60656fd58610a7ed0b65321d229b44ab618f9a (diff) | |
download | mariadb-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.cmake | 1 |
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 "") |