]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
add comment
authorNicholas Nethercote <njn@valgrind.org>
Wed, 24 Aug 2005 19:55:51 +0000 (19:55 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 24 Aug 2005 19:55:51 +0000 (19:55 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4491

memcheck/mac_replace_strmem.c

index d4e6a831c6e1268bef1d02b0eeaa2afa759cd967..87f313a3ad5caccb50adad6e9a4a87c95040c519 100644 (file)
@@ -227,6 +227,10 @@ STRNCAT(m_libc_so_6, strncat)
 STRNLEN(m_libc_so_6, strnlen)
    
 
+// Note that this replacement often doesn't get used because gcc inlines
+// calls to strlen() with its own built-in version.  This can be very
+// confusing if you aren't expecting it.  Other small functions in this file
+// may also be inline by gcc.
 #define STRLEN(soname, fnname) \
    SizeT VG_REPLACE_FUNCTION(soname,fnname)( const char* str ); \
    SizeT VG_REPLACE_FUNCTION(soname,fnname)( const char* str ) \