From: Bart Van Assche Date: Fri, 8 Oct 2010 06:58:25 +0000 (+0000) Subject: valgrind.h is again independent of config.h. Note: __builtin_frame_address() X-Git-Tag: svn/VALGRIND_3_6_0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c72e78077637a78812150da27a1ee13ea22447f4;p=thirdparty%2Fvalgrind.git 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 --- 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 \