Followup to r14656. Fix compile problem on Darwin.
Patch by Rhys Kidd <rhyskidd@gmail.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14657 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add a bit of casting to avoid a compiler warning following recent
const-ification.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14658 a5019735-40e9-0310-863c-91ae7b9d1cf9
2 pints later: more coregrind constification.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14659 a5019735-40e9-0310-863c-91ae7b9d1cf9
Enable reading of Dwarf2 frame-unwind info on MacOS.  It seems
as if more recent XCodes rely on it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14660 a5019735-40e9-0310-863c-91ae7b9d1cf9
Darwin only: add a filter mechanism that aims to remove pointless
memory-map resync operations.  Without the filter, such operations
come to dominate the running time of complex apps with thousands of
memory segments (eg Firefox) and it becomes unusably slow.  With
the filter in place, the huge performance loss is mostly avoided.

Has no meaning and no effect on non-Darwin targets.  Controlled by
flag --resync-filter=no|yes|verbose [yes].  Filter is currently only
set up for Mac OS X 10.9 (Mavericks) 64 bit and will not produce
any performance benefit on any other configuration.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14661 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add --resync-filter to the --help output.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14662 a5019735-40e9-0310-863c-91ae7b9d1cf9
Use AC_GCC_WARNING_COND to figure out whether the compiler
supports -Wcast-qual.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14663 a5019735-40e9-0310-863c-91ae7b9d1cf9