Remove unneeded variable.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14462 a5019735-40e9-0310-863c-91ae7b9d1cf9
Make sure valgrind builds with clang 3.5.0


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14463 a5019735-40e9-0310-863c-91ae7b9d1cf9
Bug 338791 Handle debug alt dwz files that are relative to the debug file.

readdwarf3 would only look for alt dwz files using the build-id.
But alt files can be installed relative to the debug (or main) file.
Fix find_debug_file to allow searching of relative files even if
we don't want an ET_REL (rel_ok) file, and pass the build-id to
open_debug_file so it can be checked. Add the debug file path to
_DebugInfoFSM and set it in find_debug_file once opened. Pass the
dbgname or filename as relative file to resolve an altfile in
read_elf_debug_info when we ahava an debugaltlink_escn.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14464 a5019735-40e9-0310-863c-91ae7b9d1cf9
Move the endianess test for ppc64 to the correct place.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14465 a5019735-40e9-0310-863c-91ae7b9d1cf9
The update fixes a format issue in the PPC test 
none/tests/ppc32/jm-insns.c and none/tests/ppc64/jm-insns.c.
The BE and LE output expect files are updated as well.

There is no Bugzilla related to this update.  The issue
was found and the initial patch and BE output update 
was done by Florian Krohm <florian@eich-krohm.de>.
Carl Love <cel@us.ibm.com> added the LE output update.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14466 a5019735-40e9-0310-863c-91ae7b9d1cf9
Fix most clang warnings.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14467 a5019735-40e9-0310-863c-91ae7b9d1cf9
The purpose of the test is to see whether the exported header files
compile OK with gcc -ansi.  Therefore, add drd.h


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14468 a5019735-40e9-0310-863c-91ae7b9d1cf9
maybe_tweak_LLc: generalise this so that it can mash more or less any
cache size and associativity pair into something the simulator can
actually handle, by increasing the associativity whilst reducing the
number of sets, so that the number of sets becomes a power of two.
Fixes #333501.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14469 a5019735-40e9-0310-863c-91ae7b9d1cf9
Fix function prototype as pointed out by clang.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14470 a5019735-40e9-0310-863c-91ae7b9d1cf9
Be more careful to separate build flags for the preload shared objects
as opposed to the valgrind code proper.  In particular, make sure that
-mpreferred-stack-boundary=2 does not get used for the preload shared
objects, since that can cause the stack to become misaligned and leads
to segfaults.  Modified version of a patch from Matthias Schwarzott
(zzam@gentoo.org).  Fixes #324050.

Also, fix the configure check in configure.ac for
-mpreferred-stack-boundary=2 so that it checks whether this is
allowable for 32-bit code generation even on 64-bit (x86) hosts.  This
check was wrong before now and led to 32-bit builds on 64-bit hosts
generating poorer code for speed critical helper functions (eg
helperc_LOADV32le) than on 32-bit builds on 32-bit hosts.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14471 a5019735-40e9-0310-863c-91ae7b9d1cf9
evh__new_mem_heap: get rid of pointless conditional.  Spotted by
Coverity and Florian Krohm.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14472 a5019735-40e9-0310-863c-91ae7b9d1cf9
Improved argument checking for sys_kcmp.  Derived from patch from
Christian Borntraeger.  Followup to r14451.  Pertains to #338106.



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