]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
14 years agoRemove some fluff detected by llvm-2.8 (clang):
Julian Seward [Mon, 11 Oct 2010 19:15:33 +0000 (19:15 +0000)] 
Remove some fluff detected by llvm-2.8 (clang):

- "*(int *)0 = " is apparently ignored by LLVM for who-knows-why
  reason.  Cast the zero to a volatile int * instead.

- remove an unused function that gcc failed to mention was unused
  (why?  because it was marked __attribute__((noreturn)) ?)

As an aside, clang/llvm-2.8 seemed to be able to successfully
compile Valgrind.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11429

14 years agoEnable support for sys_ppoll on arm-linux (Rodrigo Belem, rodrigo.belem@openbossa...
Julian Seward [Mon, 11 Oct 2010 19:09:53 +0000 (19:09 +0000)] 
Enable support for sys_ppoll on arm-linux (Rodrigo Belem, rodrigo.belem@openbossa.org).
See #253636.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11428

14 years agoAdd tests for NOP cases.
Julian Seward [Mon, 11 Oct 2010 18:55:24 +0000 (18:55 +0000)] 
Add tests for NOP cases.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11427

14 years agoImprove NEON instruction set tests, so as to run tests with
Julian Seward [Mon, 11 Oct 2010 17:41:46 +0000 (17:41 +0000)] 
Improve NEON instruction set tests, so as to run tests with
different data in high and low d-register halves.
(Dmitry Zhurikhin, zhur@ispras.ru)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11426

14 years agonone/tests/ppc*/jm-insns.c: Minor simplification.
Bart Van Assche [Mon, 11 Oct 2010 07:04:07 +0000 (07:04 +0000)] 
none/tests/ppc*/jm-insns.c: Minor simplification.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11425

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 10 Oct 2010 18:59:07 +0000 (18:59 +0000)] 
Updated Subversion ignore list.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11424

14 years agoUpdated DRD manual.
Bart Van Assche [Sun, 10 Oct 2010 18:57:53 +0000 (18:57 +0000)] 
Updated DRD manual.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11423

14 years agoUpdated the NEWS file.
Bart Van Assche [Sun, 10 Oct 2010 18:54:44 +0000 (18:54 +0000)] 
Updated the NEWS file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11422

14 years agoLet the macro ANNOTATE_BENIGN_RACE_STATIC() do what the comment above that macro...
Bart Van Assche [Sun, 10 Oct 2010 18:53:00 +0000 (18:53 +0000)] 
Let the macro ANNOTATE_BENIGN_RACE_STATIC() do what the comment above that macro says what it does.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11421

14 years agoE-mail address update.
Bart Van Assche [Sun, 10 Oct 2010 18:07:31 +0000 (18:07 +0000)] 
E-mail address update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11420

14 years agoRemoved an outdated document.
Bart Van Assche [Sun, 10 Oct 2010 17:24:29 +0000 (17:24 +0000)] 
Removed an outdated document.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11419

14 years agoDwarf3 reader: handle Dwarf3 created by gcc-4.5.1. In other words,
Julian Seward [Fri, 8 Oct 2010 23:57:25 +0000 (23:57 +0000)] 
Dwarf3 reader: handle Dwarf3 created by gcc-4.5.1.  In other words,
work around the all-new-buggy-Dwarf3 created by gcc-4.5.1.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11418

14 years agoRemoved the configure test for __builtin_frame_address() again because it is no longe...
Bart Van Assche [Fri, 8 Oct 2010 18:58:44 +0000 (18:58 +0000)] 
Removed the configure test for __builtin_frame_address() again because it is no longer necessary.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11417

14 years agoMore unwind fixes for the amd64-linux CALL_FN_*_* macros, as per
Julian Seward [Fri, 8 Oct 2010 17:43:26 +0000 (17:43 +0000)] 
More unwind fixes for the amd64-linux CALL_FN_*_* macros, as per
bug 243270 comments 47 and 48:
* use __builtin_dwarf_cfa(), not __builtin_frame_address(0), to get the CFA
* use correct register specifier in VALGRIND_CFI_PROLOGUE

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11416

14 years agoOnly enable CFI annotations when __GCC_HAVE_DWARF2_CFI_ASM is defined. This should...
Bart Van Assche [Fri, 8 Oct 2010 15:54:57 +0000 (15:54 +0000)] 
Only enable CFI annotations when __GCC_HAVE_DWARF2_CFI_ASM is defined. This should work for all platforms, all gcc versions and with and without -fno-dwarf2-cfi-asm / -fno-asynchronous-unwind-tables. Thanks to Jakub Jelinek for the hint.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11415

14 years agovalgrind.h is again independent of config.h. Note: __builtin_frame_address()
Bart Van Assche [Fri, 8 Oct 2010 06:58:25 +0000 (06:58 +0000)] 
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

14 years agoAdd a couple of OSX 10.6 specific supps.
Julian Seward [Thu, 7 Oct 2010 15:45:59 +0000 (15:45 +0000)] 
Add a couple of OSX 10.6 specific supps.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11413

14 years agochmod_extended and fchmod_extended: handle NULL xsecurity argument correctly.
Julian Seward [Thu, 7 Oct 2010 15:38:51 +0000 (15:38 +0000)] 
chmod_extended and fchmod_extended: handle NULL xsecurity argument correctly.
Fixes #247510.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11412

14 years agoUpdate stderr filters so that regtests pass on machines with 3-level caches.
Julian Seward [Thu, 7 Oct 2010 13:33:28 +0000 (13:33 +0000)] 
Update stderr filters so that regtests pass on machines with 3-level caches.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11411

14 years agoFix build failure I introduced in r11408, duh.
Julian Seward [Thu, 7 Oct 2010 10:46:15 +0000 (10:46 +0000)] 
Fix build failure I introduced in r11408, duh.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11410

14 years agoLocal-ise some variables that don't need to be visible outside this file.
Julian Seward [Thu, 7 Oct 2010 10:01:40 +0000 (10:01 +0000)] 
Local-ise some variables that don't need to be visible outside this file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11409

14 years agoTidy up ifdeffery a bit. (non-functional change)
Julian Seward [Thu, 7 Oct 2010 10:00:56 +0000 (10:00 +0000)] 
Tidy up ifdeffery a bit.  (non-functional change)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11408

14 years agoFix build breakage on Darwin resulting from r11402 (see #243270),
Julian Seward [Thu, 7 Oct 2010 10:00:04 +0000 (10:00 +0000)] 
Fix build breakage on Darwin resulting from r11402 (see #243270),
by disabling creation of .cfi directives on Darwin, until such time
as someone can figure out how to do this.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11407

14 years agoOnly use VKI_O_LARGEFILE on platforms where it exists. This
Julian Seward [Thu, 7 Oct 2010 09:56:19 +0000 (09:56 +0000)] 
Only use VKI_O_LARGEFILE on platforms where it exists.  This
unbreaks the build breakage on Darwin introduced in r11397, which
was a fix for #234064.  The breakage was subsequently reported
in #253420 and #253452, which this commit fixes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11406

14 years agoDefine VKI_SHMLBA on Darwin, so as to un-break build breakage caused by
Julian Seward [Thu, 7 Oct 2010 09:53:02 +0000 (09:53 +0000)] 
Define VKI_SHMLBA on Darwin, so as to un-break build breakage caused by
r11399.  See #222545.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11405

14 years agoChange Cachegrind/Callgrind to talk about the LL (last-level) cache instead
Nicholas Nethercote [Wed, 6 Oct 2010 22:46:31 +0000 (22:46 +0000)] 
Change Cachegrind/Callgrind to talk about the LL (last-level) cache instead
of the L2 cache.  This is to accommodate machines with three levels of
cache.  We still only simulate two levels, the first and the last.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11404

14 years agoThe amd64-linux unwinder rejects stacks of smaller than 512 bytes as
Julian Seward [Wed, 6 Oct 2010 22:45:18 +0000 (22:45 +0000)] 
The amd64-linux unwinder rejects stacks of smaller than 512 bytes as
bogus, and produces essentially useless traces from them.  With
gcc-4.4 and later, some valid thread stacks really are smaller than
this.  Hence change the limit down to 256 bytes.  Investigated by
Evgeniy Stepanov, eugeni.stepanov@gmail.com.
See bug 243270 comment 21.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11403

14 years agoamd64-linux: add suitable CFI annotations so that unwinding through
Julian Seward [Wed, 6 Oct 2010 22:07:06 +0000 (22:07 +0000)] 
amd64-linux: add suitable CFI annotations so that unwinding through
the CALL_FN_*_* macros works more reliably.  This is all very fiddly
and is described in a large comment in valgrind.h.  Fixes #243270.
(Evgeniy Stepanov, eugeni.stepanov@gmail.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11402

14 years agoppc/jm-insns.c: Use proper integer types.
Bart Van Assche [Wed, 6 Oct 2010 16:13:17 +0000 (16:13 +0000)] 
ppc/jm-insns.c: Use proper integer types.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11401

14 years agoDefine VKI_SHMLBA for all supported Linux targets, thereby unbreaking
Julian Seward [Wed, 6 Oct 2010 15:55:59 +0000 (15:55 +0000)] 
Define VKI_SHMLBA for all supported Linux targets, thereby unbreaking
the breakage created by r11399.  Part of #222545.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11400

14 years agoMake client sys_shmat work properly on arm-linux by taking into
Julian Seward [Wed, 6 Oct 2010 15:24:39 +0000 (15:24 +0000)] 
Make client sys_shmat work properly on arm-linux by taking into
account rounding requirements to SHMLBA.  Modified version of a patch
by Kirill Batuzov, batuzovk@ispras.ru.  This fixes the main bug in
#222545.  Temporarily breaks the build on all other platforms though.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11399

14 years agoget_shm_size(): pass VKI_IPC_64 to our shmctl call if it is available,
Julian Seward [Wed, 6 Oct 2010 12:59:44 +0000 (12:59 +0000)] 
get_shm_size(): pass VKI_IPC_64 to our shmctl call if it is available,
except on amd64-linux.  This fixes a secondary problem discussed
in bug 222545.  (Kirill Batuzov, batuzovk@ispras.ru)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11398

14 years agoWhen opening an mmaped file to see if it's an ELF file that we should
Julian Seward [Wed, 6 Oct 2010 11:38:01 +0000 (11:38 +0000)] 
When opening an mmaped file to see if it's an ELF file that we should
read debuginfo from, use VKI_O_LARGEFILE, so as to ensure the open
succeeds for large files on 32-bit systems.  Fixes #234064.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11397

14 years agoHandle mq_* syscalls. Fixes #243884. (David Fenger, dkfenger@gmail.com)
Julian Seward [Wed, 6 Oct 2010 11:25:29 +0000 (11:25 +0000)] 
Handle mq_* syscalls.  Fixes #243884.  (David Fenger, dkfenger@gmail.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11396

14 years agoWhen a memory block changes from unreachable to possibly or definitely
Tom Hughes [Mon, 4 Oct 2010 20:55:21 +0000 (20:55 +0000)] 
When a memory block changes from unreachable to possibly or definitely
reachable, or from possibly reachable to definitely reachable, rescan
it so that any blocks it points to are also upgraded. Fixes #206600.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11395

14 years agoSupport sys_readahead on Linux.
Julian Seward [Mon, 4 Oct 2010 20:03:27 +0000 (20:03 +0000)] 
Support sys_readahead on Linux.
(Sean Bartell, wingedtachikoma@gmail.com)  Fixes #247894.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11394

14 years agoMake sure that string buffers for cost arrays are large enough.
Josef Weidendorfer [Mon, 4 Oct 2010 19:17:21 +0000 (19:17 +0000)] 
Make sure that string buffers for cost arrays are large enough.

17 64bit values fit into 512 bytes (but not 256...).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11393

14 years agocallgrind/main.c, finish(): 'Char buf[RESULTS_BUF_LEN]' can be overrun in
Julian Seward [Sun, 3 Oct 2010 12:35:03 +0000 (12:35 +0000)] 
callgrind/main.c, finish(): 'Char buf[RESULTS_BUF_LEN]' can be overrun in
some cases.  Increase RESULTS_BUF_LEN accordingly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11392

14 years agoMake readdwarf.c big endianess safe to enable unwinding on big endian
Julian Seward [Thu, 30 Sep 2010 15:11:01 +0000 (15:11 +0000)] 
Make readdwarf.c big endianess safe to enable unwinding on big endian
systems.  (Christian Borntraeger, borntraeger@de.ibm.com).  Fixes
#248893.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11391

14 years agoDon't assert when doing origin tracking for d16-31, f32-63
Julian Seward [Wed, 29 Sep 2010 21:40:44 +0000 (21:40 +0000)] 
Don't assert when doing origin tracking for d16-31, f32-63
or q0-15.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11390

14 years agoTest cases for amd64 PCLMULDQ (Emmanuel Thome, Emmanuel.Thome@gmail.com).
Julian Seward [Tue, 28 Sep 2010 19:59:47 +0000 (19:59 +0000)] 
Test cases for amd64 PCLMULDQ (Emmanuel Thome, Emmanuel.Thome@gmail.com).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11389

14 years agoWhen origin tracking, handle the new %RFLAGS.ACFLAG guest state
Julian Seward [Tue, 28 Sep 2010 16:00:11 +0000 (16:00 +0000)] 
When origin tracking, handle the new %RFLAGS.ACFLAG guest state
component introduced in vex r2050.  See #249943.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11388

14 years agoAdd proper dependencies for pub/libvex_guest_offsets.h (Florian Krohm,
Julian Seward [Tue, 28 Sep 2010 15:09:47 +0000 (15:09 +0000)] 
Add proper dependencies for pub/libvex_guest_offsets.h (Florian Krohm,
britzel@acm.org).  Fixes #246888.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11387

14 years agoAdd test cases for CMPXCHG reg, reg on amd64. (Vince Weaver,
Julian Seward [Tue, 28 Sep 2010 14:58:03 +0000 (14:58 +0000)] 
Add test cases for CMPXCHG reg, reg on amd64.  (Vince Weaver,
vince@csl.cornell.edu).  See #246311.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11386

14 years agoAdd test cases for amd64 ADC Iv, eAX and SBB Iv, eAX (Jakub Jelinek,
Julian Seward [Tue, 28 Sep 2010 14:39:39 +0000 (14:39 +0000)] 
Add test cases for amd64 ADC Iv, eAX and SBB Iv, eAX (Jakub Jelinek,
jakub@redhat.com).  See #211410.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11385

14 years agoCalling VG_(am_relocate_nooverlap_client) will destroy the descriptor
Tom Hughes [Mon, 27 Sep 2010 15:08:34 +0000 (15:08 +0000)] 
Calling VG_(am_relocate_nooverlap_client) will destroy the descriptor
for the old segment so we need to save the permissions from it before
the call so that we can use them when notifying tools of the new space
afterwards, or we will notify them of the wrong permissions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11384

14 years agoSpeed up the --cache-sim=no case.
Nicholas Nethercote [Mon, 27 Sep 2010 02:20:38 +0000 (02:20 +0000)] 
Speed up the --cache-sim=no case.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11383

14 years agoIn Cachegrind, allow --cache-sim=no --branch-sim=no. Sometimes just getting
Nicholas Nethercote [Mon, 27 Sep 2010 01:04:20 +0000 (01:04 +0000)] 
In Cachegrind, allow --cache-sim=no --branch-sim=no.  Sometimes just getting
instruction counts is useful.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11382

14 years agoAdd tests for all encodings of REV and REV16 in both ARM and Thumb mode.
Julian Seward [Sun, 26 Sep 2010 00:51:12 +0000 (00:51 +0000)] 
Add tests for all encodings of REV and REV16 in both ARM and Thumb mode.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11381

14 years agoAdd tests for ORN (immediate) and ORN (register).
Julian Seward [Sat, 25 Sep 2010 22:07:01 +0000 (22:07 +0000)] 
Add tests for ORN (immediate) and ORN (register).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11380

14 years agoTest for RBIT in ARM mode.
Julian Seward [Fri, 24 Sep 2010 23:51:42 +0000 (23:51 +0000)] 
Test for RBIT in ARM mode.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11379

14 years agoPartially make this work on arm-linux (for 32-bit incs), so as to give
Julian Seward [Fri, 24 Sep 2010 23:51:17 +0000 (23:51 +0000)] 
Partially make this work on arm-linux (for 32-bit incs), so as to give
a proper test for LDREX/STREX.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11378

14 years agoOn arm-linux, add r7 to the set of registers that the CFI unwinder
Julian Seward [Thu, 23 Sep 2010 22:05:59 +0000 (22:05 +0000)] 
On arm-linux, add r7 to the set of registers that the CFI unwinder
knows how to unwind.  This is important when unwinding Thumb code
the CFA is often stated as being at some offset from r7.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11377

14 years agoDW_CFA_advance_loc{,1,2,4} fail to multiply the delta by
Julian Seward [Thu, 23 Sep 2010 13:24:48 +0000 (13:24 +0000)] 
DW_CFA_advance_loc{,1,2,4} fail to multiply the delta by
code_alignment_factor, thereby assuming it is 1.  This happens to be
OK on amd64-linux and s390x-linux because it really is 1, but on
arm-linux it is 2, and hence the boundaries between code-unwind areas
are simply wrong after any of DW_CFA_advance_loc{,1,2,4} are
processed.  This patch provides the obvious fix.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11376

14 years agoarm-linux: zero out the least significant bit of R15 that we
Julian Seward [Thu, 23 Sep 2010 11:02:48 +0000 (11:02 +0000)] 
arm-linux: zero out the least significant bit of R15 that we
ptrace into the child, so as to be a legitimate instruction
address in both ARM and Thumb mode.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11375

14 years agoAdd VFP test cases, as per bug 244493 comment 1. Minorly cleaned up
Julian Seward [Thu, 23 Sep 2010 01:26:06 +0000 (01:26 +0000)] 
Add VFP test cases, as per bug 244493 comment 1.  Minorly cleaned up
version of a patch by (Dmitry Zhurikhin, zhur@ispras.ru)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11374

14 years agoEnable --track-origins on ARM code which accesses CPSR.GE3/2/1/0.
Julian Seward [Wed, 22 Sep 2010 22:27:41 +0000 (22:27 +0000)] 
Enable --track-origins on ARM code which accesses CPSR.GE3/2/1/0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11373

14 years agoAdd more test cases for {U,S}{ADD,SUB}16.
Julian Seward [Wed, 22 Sep 2010 01:00:06 +0000 (01:00 +0000)] 
Add more test cases for {U,S}{ADD,SUB}16.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11372

14 years agoHandle new 32-bit SIMD integer primops introduced in vex r2037.
Julian Seward [Wed, 22 Sep 2010 00:58:51 +0000 (00:58 +0000)] 
Handle new 32-bit SIMD integer primops introduced in vex r2037.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11371

14 years agoAdd test cases for SSUB8 and UHADD8.
Julian Seward [Tue, 21 Sep 2010 09:05:20 +0000 (09:05 +0000)] 
Add test cases for SSUB8 and UHADD8.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11370

14 years agoAdd tests for new insns in vex r2033 (SADD16, SSUB16, SASX, SMLAWB, SMLAWT)
Julian Seward [Mon, 20 Sep 2010 22:54:25 +0000 (22:54 +0000)] 
Add tests for new insns in vex r2033 (SADD16, SSUB16, SASX, SMLAWB, SMLAWT)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11369

14 years agoMade timerfd-syscall test more robust by improving the time rounding algorithm.
Bart Van Assche [Sun, 19 Sep 2010 17:21:31 +0000 (17:21 +0000)] 
Made timerfd-syscall test more robust by improving the time rounding algorithm.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11368

14 years agoFixed a typo.
Bart Van Assche [Sun, 19 Sep 2010 17:16:39 +0000 (17:16 +0000)] 
Fixed a typo.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11367

14 years agomemcheck/tests/linux/timerfd-syscall: send output to stderr instead of stdout.
Bart Van Assche [Sun, 19 Sep 2010 17:13:53 +0000 (17:13 +0000)] 
memcheck/tests/linux/timerfd-syscall: send output to stderr instead of stdout.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11366

14 years agoDRD: avoid unaligned reads.
Bart Van Assche [Sun, 19 Sep 2010 11:14:31 +0000 (11:14 +0000)] 
DRD: avoid unaligned reads.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11365

14 years agoPowerPC: added expected output files for memcheck/tests/varinfo[1-6], based
Bart Van Assche [Sat, 18 Sep 2010 13:34:23 +0000 (13:34 +0000)] 
PowerPC: added expected output files for memcheck/tests/varinfo[1-6], based
on a patch supplied by Maynard Johnson. See also #247526.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11364

14 years agoPowerPC: corrected expected output for memcheck/tests/origin5-bz2. Patch
Bart Van Assche [Sat, 18 Sep 2010 10:45:27 +0000 (10:45 +0000)] 
PowerPC: corrected expected output for memcheck/tests/origin5-bz2. Patch
supplied by Maynard Johnson -- see also #247526.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11363

14 years agoFollow-up for r11360.
Bart Van Assche [Sat, 18 Sep 2010 09:37:07 +0000 (09:37 +0000)] 
Follow-up for r11360.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11362

14 years agoBuild 32-bit exp-bbv tests as 32-bit. Patch supplied by Maynard Johnson
Bart Van Assche [Sat, 18 Sep 2010 08:40:52 +0000 (08:40 +0000)] 
Build 32-bit exp-bbv tests as 32-bit. Patch supplied by Maynard Johnson
(see also #247526).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11361

14 years agoSkip exp-ptrcheck regression tests on PowerPC and ARM. Based on a patch by
Bart Van Assche [Sat, 18 Sep 2010 08:34:33 +0000 (08:34 +0000)] 
Skip exp-ptrcheck regression tests on PowerPC and ARM. Based on a patch by
Maynard Johnson -- see also #247526.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11360

14 years agoMade power6_bcmp testcases pass - patch from Maynard Johnson. Closes #250777.
Bart Van Assche [Sat, 18 Sep 2010 08:10:28 +0000 (08:10 +0000)] 
Made power6_bcmp testcases pass - patch from Maynard Johnson. Closes #250777.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11359

14 years agoPowerPC, Altivec: avoid using typedefs in combination with the vector keyword.
Bart Van Assche [Tue, 14 Sep 2010 15:33:00 +0000 (15:33 +0000)] 
PowerPC, Altivec: avoid using typedefs in combination with the vector keyword.
Patch by Maynard Johnson (see also #247526).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11358

14 years agoAdded configure test that checks whether the assembler supports the SSE4a instruction...
Bart Van Assche [Tue, 14 Sep 2010 10:53:57 +0000 (10:53 +0000)] 
Added configure test that checks whether the assembler supports the SSE4a instruction lzcnt.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11357

14 years agoAvoid triggering AM_CFLAGS / AM_CXXFLAGS redefinition warnings.
Bart Van Assche [Mon, 13 Sep 2010 17:44:51 +0000 (17:44 +0000)] 
Avoid triggering AM_CFLAGS / AM_CXXFLAGS redefinition warnings.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11356

14 years agoRestored original code for other compilers than ppc gcc 4.3.0 such that at least...
Bart Van Assche [Mon, 13 Sep 2010 17:44:10 +0000 (17:44 +0000)] 
Restored original code for other compilers than ppc gcc 4.3.0 such that at least one test invokes ANNOTATE_UNPROTECTED_READ().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11355

14 years agoSecond and last gcc 4.3.2 PowePC workaround.
Bart Van Assche [Sat, 11 Sep 2010 10:07:56 +0000 (10:07 +0000)] 
Second and last gcc 4.3.2 PowePC workaround.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11354

14 years agoImplemented a workaround for a PowerPC-specific gcc-4.3.2-7.x86_64 bug. See also
Bart Van Assche [Sat, 11 Sep 2010 10:00:22 +0000 (10:00 +0000)] 
Implemented a workaround for a PowerPC-specific gcc-4.3.2-7.x86_64 bug. See also
http://sourceforge.net/mailarchive/forum.php?thread_name=201009101114.07127.jseward%40acm.org&forum_name=valgrind-developers

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11353

14 years agoFix a couple of make-dist bugs, caused by recently added ppc32/64
Julian Seward [Fri, 10 Sep 2010 14:57:46 +0000 (14:57 +0000)] 
Fix a couple of make-dist bugs, caused by recently added ppc32/64
tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11352

14 years agoUn-break the docs build on Ubuntu 10.04 (Loïc Minier, lool@dooz.org).
Julian Seward [Fri, 10 Sep 2010 14:56:18 +0000 (14:56 +0000)] 
Un-break the docs build on Ubuntu 10.04 (Loïc Minier, lool@dooz.org).
Fixes #232509.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11351

14 years agoAdd missing (empty) stdout.exp files.
Julian Seward [Fri, 10 Sep 2010 13:56:53 +0000 (13:56 +0000)] 
Add missing (empty) stdout.exp files.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11350

14 years agoUpdated Subversion ignore lists.
Bart Van Assche [Thu, 9 Sep 2010 16:35:44 +0000 (16:35 +0000)] 
Updated Subversion ignore lists.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11349

14 years agoSwitched back to unified annotations.
Bart Van Assche [Thu, 9 Sep 2010 10:12:43 +0000 (10:12 +0000)] 
Switched back to unified annotations.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11348

14 years agoarm-linux: determine whether the host supports Neon by looking at our
Julian Seward [Thu, 9 Sep 2010 07:25:58 +0000 (07:25 +0000)] 
arm-linux: determine whether the host supports Neon by looking at our
AUXV at startup, rather than by trying to execute a Neon instruction
and seeing whether it SIGILLs.  Apparently the latter is not a
reliable way to ascertain the presence of usable Neon support.  Fixes
#249775.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11347

14 years agoMade sure that DRD processes empty address ranges without triggering an assertion...
Bart Van Assche [Wed, 8 Sep 2010 16:29:17 +0000 (16:29 +0000)] 
Made sure that DRD processes empty address ranges without triggering an assertion failure. Added a unit test in drd/tests/unit_bitmap.c.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11346

14 years agoFix somewhat nonsensical ifdeffery.
Julian Seward [Wed, 8 Sep 2010 15:12:33 +0000 (15:12 +0000)] 
Fix somewhat nonsensical ifdeffery.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11345

14 years agoAdd tests for RBIT (bit-reverse) instruction (Thumb only).
Julian Seward [Wed, 8 Sep 2010 08:46:15 +0000 (08:46 +0000)] 
Add tests for RBIT (bit-reverse) instruction (Thumb only).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11344

14 years agoDon't scan the entire Valgrind stack to check for impending
Julian Seward [Wed, 8 Sep 2010 08:30:31 +0000 (08:30 +0000)] 
Don't scan the entire Valgrind stack to check for impending
stack-overflow situations.  This causes an immense number of L2 misses
which are completely pointless, and the recent increase of the
Valgrind per-thread stack size from 64k to 1M greatly aggravates the
situation.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11343

14 years agoConsistency improvement: made sure that VG_TRACK(die_mem_stack, address, len)
Bart Van Assche [Tue, 7 Sep 2010 16:32:53 +0000 (16:32 +0000)] 
Consistency improvement: made sure that VG_TRACK(die_mem_stack, address, len)
is not invoked with a zero third argument.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11342

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Tue, 7 Sep 2010 16:31:24 +0000 (16:31 +0000)] 
Updated Subversion ignore list.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11341

14 years agoFixed an AMD64 bug reported by Evgeniy Stepanov: the order of
Bart Van Assche [Sun, 5 Sep 2010 12:10:25 +0000 (12:10 +0000)] 
Fixed an AMD64 bug reported by Evgeniy Stepanov: the order of
VALGRIND_CALL_NOREDIR_RAX and addq $128,%%rsp was wrong in CALL_FN_W_6W().
See also #243270.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11340

14 years agoStop gcc complaining that dcbz_szB is used uninitialised.
Julian Seward [Sat, 4 Sep 2010 00:43:14 +0000 (00:43 +0000)] 
Stop gcc complaining that dcbz_szB is used uninitialised.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11339

14 years agoAdd tests for new PowerISA_2.05 instructions available on Power6 CPUs.
Julian Seward [Fri, 3 Sep 2010 23:49:33 +0000 (23:49 +0000)] 
Add tests for new PowerISA_2.05 instructions available on Power6 CPUs.
(Maynard Johnson, maynardj@us.ibm.com and Pete Eberlein, eberlein@us.ibm.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11338

14 years agoSupport the DCBZL instruction. Also, query the host CPU at startup
Julian Seward [Fri, 3 Sep 2010 15:51:34 +0000 (15:51 +0000)] 
Support the DCBZL instruction.  Also, query the host CPU at startup
time to find out how much space DCBZL really clears, and make the
guest CPU act accordingly.  (valgrind-side changes).
(Dave Goodell, goodell@mcs.anl.gov)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11337

14 years agoMake the leak tests a whole lot less flaky on ppc32/64-linux by
Julian Seward [Fri, 3 Sep 2010 15:14:41 +0000 (15:14 +0000)] 
Make the leak tests a whole lot less flaky on ppc32/64-linux by
zeroing out caller saves registers before the leak check.  We should
really do this on all platforms, not just these.
(Maynard Johnson, maynardj@us.ibm.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11336

14 years agoFollowup to r11333: rename HAVE_ALTIVEC back to HAS_ALTIVEC, since the
Julian Seward [Fri, 3 Sep 2010 14:36:50 +0000 (14:36 +0000)] 
Followup to r11333: rename HAVE_ALTIVEC back to HAS_ALTIVEC, since the
symbol is used in more places than those addressed by r11333.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11335

14 years agoEnable sys_pwrite64 on arm-linux. Fixes #249996.
Julian Seward [Fri, 3 Sep 2010 14:25:10 +0000 (14:25 +0000)] 
Enable sys_pwrite64 on arm-linux.  Fixes #249996.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11334

14 years agoUn-break feature detection for Altivec, so that the Altivec tests
Julian Seward [Fri, 3 Sep 2010 14:02:22 +0000 (14:02 +0000)] 
Un-break feature detection for Altivec, so that the Altivec tests
get built properly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11333

14 years agodarwin: support sys_open_extended, sys_removexattr, sys_fremovexattr.
Julian Seward [Thu, 2 Sep 2010 22:42:14 +0000 (22:42 +0000)] 
darwin: support sys_open_extended, sys_removexattr, sys_fremovexattr.
open_extended has the same kludge as chmod_extended/fchmod_extended.
Fixes #246549.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11332

14 years agoFix branch predictor simulation in Cachegrind
Josef Weidendorfer [Thu, 2 Sep 2010 17:06:49 +0000 (17:06 +0000)] 
Fix branch predictor simulation in Cachegrind

* do indirect branch prediction simulation on calls
  via function pointers
* only call into conditional branch prediction simulation
  on real guest code branches (eg. not for VEX emulation of some
  instructions using branches of jumpkind Ijk_EmWarn)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11331

14 years agoAdded a suppression pattern.
Bart Van Assche [Thu, 2 Sep 2010 14:51:02 +0000 (14:51 +0000)] 
Added a suppression pattern.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11330