Add script. Comes in handy when messing with the build system
to make sure no compiler flags get lost (as they did at some
point in the past).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14797 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add -Wformat -Wformat-security to the list of compile flags.
This was not as straight forward as expected. Specifically, adding the
new flag to CFLAGS in configure.ac did not work and was causing
compiler warnings. For instance, compiling memcheck/tests/execve2.c will
generate a -Wnonnull warning even though the testcase is explicitly
compiled with -Wno-nonnull. The reason is that (a) -Wformat is implied by
-Wnonnull and (b) the list of compiler flags gets assembled in the wrong
order. The culprit appears to be that we modify CFLAGS in configure.ac and
that really is not the right place. Conceptually, configure should determine
tool-chain capabilities and not assemble compiler flags. That should be done
in Makefiles. This patch entangles all this.

So, whatever was added to CFLAGS in configure.ac has now been moved to
Makefile.all.am and Makefile.tool-tests.am. Those are:
-Wno-long-long
-Wwrite-strings
-Wcast-qual
-fno-stack-protector
Note, that this change allows us to simplify Makefile.tool-tests.am which
in the past was disabling some of those flags (e.g. by adding -Wno-cast-qual
again).
In case of the clang compiler, extra command line options are needed. I've
moved those into a separate 'if COMPILER_IS_CLANG' section and not merge
them into baseline flags.

Related to BZ 334727.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14798 a5019735-40e9-0310-863c-91ae7b9d1cf9
Update test result following VEX r3029.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14799 a5019735-40e9-0310-863c-91ae7b9d1cf9
Eliminate fixed size buffer 'the_CIEs' and allocate it dynamically.
Part of fixing BZ #337869.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14800 a5019735-40e9-0310-863c-91ae7b9d1cf9
Remove fixed size arrays in the dwarf-3 parser.
Use proper initialisation functions for the type and variable parser.
Add functions to release the dynamically allocated functions.
No longer maintain content of popped-off stack entries as that is
essentially freed memory and complicates matters unnecessarily.
Part of fixing BZ #337869.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14801 a5019735-40e9-0310-863c-91ae7b9d1cf9
Announce, that the long displacement facility is noq required for s390x.
Update minimum machine model. See also VEX r3034.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14802 a5019735-40e9-0310-863c-91ae7b9d1cf9
Detect presence of sse3 instructions on x86.
Set VEX_HWCAPS_X86_SSE3 accordingly.
This came about by grepping the source for VEX_HWCAPS_X86_SSE3
and observing that the flag was tested for (in VEX) but not set.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14803 a5019735-40e9-0310-863c-91ae7b9d1cf9
Update expected output for none/tests/darwin/access_extended.
Fixes #341615.  (Rhys Kidd, rhyskidd@gmail.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14804 a5019735-40e9-0310-863c-91ae7b9d1cf9
Update detection of tool-chain support for MPX insns
to better work for older assemblers.
Pertains to BZ #339542.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14805 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add limited support for printing floating point numbers to
VG_(debugLog_vprintf). 
Remove function VG_(percentify) and fix up its call sites (part of
fixing BZ #337869.
Allow the width in a format specification to be '*', i.e. the width is
given as an additional function argument.

The limitations for printing floating point numbers are:
(1) %f is the only supported format. Width and precision can be
    specified.
(2) Funny numbers (NaN and such) are not supported.
(3) Floating point numbers need to be benign in the sense that their
    integral part fits into an ULong.
This is good enough for our purposes.


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