From c72e78077637a78812150da27a1ee13ea22447f4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 8 Oct 2010 06:58:25 +0000 Subject: [PATCH] valgrind.h is again independent of config.h. Note: __builtin_frame_address() is available since at least gcc 2.95.3. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11414 --- include/valgrind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/valgrind.h b/include/valgrind.h index 61f8803f70..d2d54a98e0 100644 --- a/include/valgrind.h +++ b/include/valgrind.h @@ -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 \ -- 2.47.2