]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
valgrind.h is again independent of config.h. Note: __builtin_frame_address()
authorBart Van Assche <bvanassche@acm.org>
Fri, 8 Oct 2010 06:58:25 +0000 (06:58 +0000)
committerBart Van Assche <bvanassche@acm.org>
Fri, 8 Oct 2010 06:58:25 +0000 (06:58 +0000)
is available since at least gcc 2.95.3.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11414

include/valgrind.h

index 61f8803f709650aa93789fca8ef981ffa725b1e5..d2d54a98e037b534621f8ea1981754f936bbbf92 100644 (file)
@@ -1225,7 +1225,7 @@ typedef
    it on Darwin (at least for the moment) since I can't figure out
    how to do the .cfi directives there.
 */
-#if HAVE_BUILTIN_FRAME_ADDRESS && !defined(PLAT_amd64_darwin)
+#if defined(__GNUC__) && !defined(PLAT_amd64_darwin)
 #  define __FRAME_POINTER                                         \
       ,"r"(__builtin_frame_address(0))
 #  define VALGRIND_CFI_PROLOGUE                                   \