]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
7 years agoMerge VEX_3_12_BRANCH into VALGRIND_3_12_BRANCH svn/VALGRIND_3_12_BRANCH svn/VALGRIND_3_12_0
Ivo Raisr [Mon, 14 Aug 2017 10:26:28 +0000 (12:26 +0200)] 
Merge VEX_3_12_BRANCH into VALGRIND_3_12_BRANCH

8 years ago-> 3.12.0
Julian Seward [Fri, 21 Oct 2016 10:42:14 +0000 (10:42 +0000)] 
-> 3.12.0

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16098

8 years ago-> 3.12.0.RC2
Julian Seward [Thu, 20 Oct 2016 12:13:04 +0000 (12:13 +0000)] 
-> 3.12.0.RC2

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16096

8 years agoBuild fixes for MacOS X 10.10.5.
Julian Seward [Thu, 20 Oct 2016 11:47:15 +0000 (11:47 +0000)] 
Build fixes for MacOS X 10.10.5.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16095

8 years ago-> 3.12.0.RC1
Julian Seward [Thu, 20 Oct 2016 08:44:40 +0000 (08:44 +0000)] 
-> 3.12.0.RC1

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16094

8 years agoResync these (copy from) the trunk.
Julian Seward [Thu, 20 Oct 2016 08:31:08 +0000 (08:31 +0000)] 
Resync these (copy from) the trunk.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16093

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:49:10 +0000 (05:49 +0000)] 
Merge from trunk:
  16081 Add another incompatibility between illumos and Solaris kernels.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16090

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:48:12 +0000 (05:48 +0000)] 
Merge from trunk:
  16080 mips: fix coredump creation in Valgrind

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16089

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:47:06 +0000 (05:47 +0000)] 
Merge from trunk:
  16079 Update memcheck/tests/ppc64/power_ISA2_05.vgtest

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16088

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:45:18 +0000 (05:45 +0000)] 
Merge from trunk:
  16078 "You need libc6-dbg" help message could be more helpful.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16087

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:44:27 +0000 (05:44 +0000)] 
Merge from trunk:
  16077 Add support for Linux perf-events ioctls.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16086

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:41:44 +0000 (05:41 +0000)] 
Merge from trunk:
  3276  Allow early writeback of SP base register in "strd rD, [sp, #-16]"

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3282

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:40:34 +0000 (05:40 +0000)] 
Merge from trunk:
  3275  CVTPI2PS: Only switch to MMX mode if the source is a MMX register.

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3281

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:39:18 +0000 (05:39 +0000)] 
Merge from trunk:
  3274  Accept redundant REX prefixes for {minsd,maxsd} m128, xmm.

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3280

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:38:04 +0000 (05:38 +0000)] 
Merge from trunk:
  3273  Fix two cases of PPCAvFpOp vs PPCFpOp enum confusion.

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3279

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:37:07 +0000 (05:37 +0000)] 
Merge from trunk:
  3272  Fix incorrect register-number constraint check for LDAEX{,B,H,D}

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3278

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:35:47 +0000 (05:35 +0000)] 
Merge from trunk:
  16075 x86_linux asm _start functions do not keep 16-byte aligned %esp.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16085

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:34:35 +0000 (05:34 +0000)] 
Merge from trunk:
  16074 Fix run_a_thread_NORETURN assembly code typo for VGP_arm64_linux

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16084

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:33:30 +0000 (05:33 +0000)] 
Merge from trunk:
  16073 Add --ignore-range-below-sp=<offset>-<offset>

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16083

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:30:07 +0000 (05:30 +0000)] 
Merge from trunk:
  16072 Fix PPC BE in 32-bit mode (Iop_CmpXX64 not supported in 32-bit mode)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16082

8 years agoMerge from trunk:
Julian Seward [Thu, 20 Oct 2016 05:26:41 +0000 (05:26 +0000)] 
Merge from trunk:
  3271  Fix PPC BE in 32-bit mode (Iop_CmpXX64 not supported in 32-bit mode)

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3277

8 years agoAllow early writeback of SP base register in "strd rD, [sp, #-16]" so
Julian Seward [Wed, 19 Oct 2016 16:57:11 +0000 (16:57 +0000)] 
Allow early writeback of SP base register in "strd rD, [sp, #-16]" so
as to avoid Memcheck complaining about writes below SP.  Previously
this was allowed only for the #-8 case.  n-i-bz.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3276

8 years agoCVTPI2PS: Only switch to MMX mode if the source is a MMX register.
Julian Seward [Wed, 19 Oct 2016 16:01:01 +0000 (16:01 +0000)] 
CVTPI2PS: Only switch to MMX mode if the source is a MMX register.
(for both x86 and amd64 front ends)
Fixes #357059.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3275

8 years agoAccept redundant REX prefixes for {minsd,maxsd} m128, xmm. Fixes #357932.
Julian Seward [Wed, 19 Oct 2016 15:37:54 +0000 (15:37 +0000)] 
Accept redundant REX prefixes for {minsd,maxsd} m128, xmm.  Fixes #357932.
Patch from axel.carl.mueller@gmail.com.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3274

8 years agoFix two cases of PPCAvFpOp vs PPCFpOp enum confusion, as spotted
Julian Seward [Wed, 19 Oct 2016 07:41:35 +0000 (07:41 +0000)] 
Fix two cases of PPCAvFpOp vs PPCFpOp enum confusion, as spotted
by Clang-3.8.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3273

8 years agoFix incorrect register-number constraint check for LDAEX{,B,H,D}
Julian Seward [Wed, 19 Oct 2016 07:39:22 +0000 (07:39 +0000)] 
Fix incorrect register-number constraint check for LDAEX{,B,H,D}
introduced in r3248.  Spotted by Clang-3.8.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3272

8 years ago Fix PPC BE in 32-bit mode.
Carl Love [Tue, 18 Oct 2016 15:52:09 +0000 (15:52 +0000)] 
 Fix PPC BE in 32-bit mode.

The 64-bit compares are not supported in 32-bit mode.  Change the 64-bit
compares to 32-bit compares when doing byte compares.  Add routine for
doing V128 GT compare using 32-bit compares.

The clean caller support was missing for 32-bit mode

Update the expected output file jm_vec_isa_2_07.stdout.exp

Bugzilla 371128

git-svn-id: svn://svn.valgrind.org/vex/trunk@3271

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 06:18:10 +0000 (06:18 +0000)] 
Merge from trunk:
  15976 Prelim support for macOS Sierra (10.12).  Partial fix for #365327.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16071

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:28:35 +0000 (05:28 +0000)] 
Merge from trunk:
  16043  Introduce leak-pool-3.* back into EXTRA_DIST as they are not related
         to leak-autofreepool tests.  This is a follow up fix for r16042.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16069

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:27:07 +0000 (05:27 +0000)] 
Merge from trunk:
  16042  Clarify name and description/manual for meta mempool

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16068

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:25:22 +0000 (05:25 +0000)] 
Merge from trunk:
  16041  fix 369468 Remove quadratic metapool alg.
         using VG_(HT_remove_at_Iter)(VgHashTable *table)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16067

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:22:51 +0000 (05:22 +0000)] 
Merge from trunk:
  16040  mips32: add the test cases for luxc1/suxc1 instructions

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16066

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:20:24 +0000 (05:20 +0000)] 
Merge from trunk:
  3263   mips64: fix error introduced by r3262

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3270

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:19:20 +0000 (05:19 +0000)] 
Merge from trunk:
  3262   mips: fix incorrect implementation of luxc1/suxc1 instructions

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3269

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:18:06 +0000 (05:18 +0000)] 
Merge from trunk:
  16039  mips: allow Valgrind to be compiled for soft-float

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16065

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:16:07 +0000 (05:16 +0000)] 
Merge from trunk:
  3261   mips: allow VEX to be compiled for soft-float

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3268

8 years agoMerge from trunk:
Julian Seward [Tue, 18 Oct 2016 05:14:29 +0000 (05:14 +0000)] 
Merge from trunk:
  16038  mips: clear fcc bits in fcsr after calling printf()

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16064

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:24:20 +0000 (19:24 +0000)] 
Merge from trunk:
  16045  Follow up for r16044.  Fix compilation problem on Solaris.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16063

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:23:19 +0000 (19:23 +0000)] 
Merge from trunk:
  16044  Further fixes following fix of leak in 16033

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16062

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:21:53 +0000 (19:21 +0000)] 
Merge from trunk:
  16036  Fix corruption introduced by revision 16033

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16061

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:20:46 +0000 (19:20 +0000)] 
Merge from trunk:
  16033  Fix some (small) leaks found by self-hosting valgrind

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16060

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:19:26 +0000 (19:19 +0000)] 
Merge from trunk:
  16037  Fix for missing ISA changes in HW cap stuff needs updating patch

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16059

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:11:51 +0000 (19:11 +0000)] 
Merge from trunk:
  16035  Update NEWS file for bugzillas 369175 and 370265

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16058

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:10:57 +0000 (19:10 +0000)] 
Merge from trunk:
  16034  Power configure fixes.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16057

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:08:58 +0000 (19:08 +0000)] 
Merge from trunk:
  16032  ISA 3.0 BE testsuite fixes

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16056

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 19:04:28 +0000 (19:04 +0000)] 
Merge from trunk:
  3260   ISA 3.0 BE fixes for various new instructions

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3267

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 17:11:02 +0000 (17:11 +0000)] 
Merge, from trunk:
  16031  mips32: add pselect6 to the list of supported syscalls

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16055

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 17:02:32 +0000 (17:02 +0000)] 
Merge, from trunk:
  16030  fix building the dfp testcase

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16054

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 17:01:34 +0000 (17:01 +0000)] 
Merge, from trunk:
  16029  actually test high-word by providing the plumbing...

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16053

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 17:00:44 +0000 (17:00 +0000)] 
Merge, from trunk:
  16028  s390/highword fix compile warning with some compilers

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16052

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 16:59:59 +0000 (16:59 +0000)] 
Merge, from trunk:
  16027  s390: support RISBLG/RISBHG, MVCIN, LDE/LDER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16051

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 16:34:42 +0000 (16:34 +0000)] 
Merge, from trunk:
  3259   s390: support RISBLG/RISBHG, MVCIN, LDE/LDER

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3266

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 16:25:02 +0000 (16:25 +0000)] 
Merge, from trunk:
  3258   mips: remove support for mfc0/dmfc0

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3265

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 16:16:57 +0000 (16:16 +0000)] 
Merge, from trunk:
  3257   Relax the overly-restrictive implementation of (T3) SUB{S}.W Rd,
         SP, Rm, {shift}.  #354274

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3264

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 16:15:27 +0000 (16:15 +0000)] 
Merge, from trunk:
  16026  mips32: fix the wrong offset for mmap2()

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16050

8 years agoMerge from trunk:
Julian Seward [Mon, 17 Oct 2016 16:10:10 +0000 (16:10 +0000)] 
Merge from trunk:
  16025  Add a warning to the get/set_thread_area wrapper for bad info pointers.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16049

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 16:08:17 +0000 (16:08 +0000)] 
Merge, from trunk:
  16024  Fix n-i-bz bug in auto free pool: a block using the last byte
         of the meta pool was not auto-freed.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16048

8 years agoMerge, from trunk:
Julian Seward [Mon, 17 Oct 2016 16:06:31 +0000 (16:06 +0000)] 
Merge, from trunk:
  16018  mips: replace use of (d)addi with (d)addiu

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16047

8 years agomips64: fix error introduced by r3262
Petar Jovanovic [Thu, 13 Oct 2016 13:53:50 +0000 (13:53 +0000)] 
mips64: fix error introduced by r3262

There was a typo in r3262 that caused a regression in the following two
tests:

none/tests/mips64/load_store_unaligned   (stdout)
none/tests/mips64/load_store_unaligned   (stderr)

This change fixes it.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3263

8 years agomips: fix incorrect implementation of luxc1/suxc1 instructions
Petar Jovanovic [Wed, 12 Oct 2016 15:25:45 +0000 (15:25 +0000)] 
mips: fix incorrect implementation of luxc1/suxc1 instructions

Support correct execution of luxc1 and suxc1 instructions on MIPS32
and MIPS64 platforms with the respect for FPU mode.

Patch by Aleksandra Karadzic.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3262

8 years agomips: allow VEX to be compiled for soft-float
Petar Jovanovic [Wed, 12 Oct 2016 15:02:10 +0000 (15:02 +0000)] 
mips: allow VEX to be compiled for soft-float

Force "hardfloat" mode for inline assembly that uses FPU instructions,
but pop original mode at the end of the assembly.

This should allow Valgrind to be compiled as a soft-float binary, but
that executable should be used for soft-float systems only.

Related issue - BZ#351282.

Patch by Aleksandar Rikalo.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3261

8 years agoISA 3.0 BE fixes for various new instructions
Carl Love [Fri, 7 Oct 2016 22:53:52 +0000 (22:53 +0000)] 
ISA 3.0 BE fixes for various new instructions

This is an additional commit to fix issues found with the
new Power ISA 3.0 instructions for BE mode.  The instructions
fixed in this patch include: lxvl, lxvx, lxvwsx, lxvh8x, lxvh16x,
stxvx, stxvh8x, stxvh16x, lxsibzx, lxsihzx, xscvqpdp, xscvqpdp0,
xvcvsphp.

Bugzilla 369175

git-svn-id: svn://svn.valgrind.org/vex/trunk@3260

8 years agos390: support RISBLG/RISBHG, MVCIN, LDE/LDER
Christian Borntraeger [Fri, 7 Oct 2016 07:07:10 +0000 (07:07 +0000)] 
s390: support RISBLG/RISBHG, MVCIN, LDE/LDER

patch by Andreas Arnez

git-svn-id: svn://svn.valgrind.org/vex/trunk@3259

8 years agomips: remove support for mfc0/dmfc0
Petar Jovanovic [Thu, 6 Oct 2016 13:54:12 +0000 (13:54 +0000)] 
mips: remove support for mfc0/dmfc0

Remove support for mfc0/dmfc0, as these instructions are privileged
instructions and Valgrind cannot execute these.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3258

8 years agoRelax the overly-restrictive implementation of
Julian Seward [Thu, 6 Oct 2016 05:25:58 +0000 (05:25 +0000)] 
Relax the overly-restrictive implementation of

  (T3) SUB{S}.W Rd, Rn, Rm, {shift}

in the case where Rn=SP, to allow |shift| values of 0,1,2,3
instead of just 0.  Fixes #354274.  Patch from dimitry@google.com.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3257

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 14:58:08 +0000 (14:58 +0000)] 
Merge from trunk:
  r16006 dhat: add "tot-blocks-allocd" metric

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16022

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 14:54:24 +0000 (14:54 +0000)] 
Merge from trunk:
  r16004 mips64: support for prctl(GET/SET_FP_MODE) syscalls

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16021

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 14:53:11 +0000 (14:53 +0000)] 
Merge from trunk:
  r16003 mips64: support for prctl(GET/SET_FP_MODE) syscalls

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16020

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 14:51:57 +0000 (14:51 +0000)] 
Merge from trunk:
  r16001 mips32: test for syscalls prctl(GET/SET_FP_MODE)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16019

8 years agoMerge, from trunk:
Julian Seward [Wed, 5 Oct 2016 14:48:24 +0000 (14:48 +0000)] 
Merge, from trunk:
  r3253 mips64: support for fp32 mode

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3256

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 13:22:13 +0000 (13:22 +0000)] 
Merge from trunk:
  r3252  Fix rounding mode check and instruction stxvl

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3255

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 13:20:06 +0000 (13:20 +0000)] 
Merge from trunk:
  r3251  Fix for clean helpers on BE

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3254

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 13:17:03 +0000 (13:17 +0000)] 
Merge from trunk:
  r15999 Replace --wait-for-gdb=yes memory loop by a call to VG_(poll)
         (5000 milliseconds)
  r16000 Well, 5 seconds is too short for me to type a attach pid command
         so increase to 8 seconds.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16017

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 13:12:24 +0000 (13:12 +0000)] 
Merge from trunk:
  r15981 Add ioctl wrapper for MNTIOC_GETEXTMNTENT.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16016

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 05:42:01 +0000 (05:42 +0000)] 
Merge from trunk:
  r15990 Fix pre_mem_read_sockaddr crash on invalid syscall arguments.
         Bug #369356.
  r15991 Fix crash in msghdr_foreachfield when iov_len isn't safe to dereference.
         Bug #369359
  r15992 Fix crash when old/new sigprocmask isn't safe to dereference.
         Bug #369360.
  r15993 Fix crash in vmsplice linux kernel wrapper when iovec is bad.
         Bug #369361.
  r15994 Fix crash in linux [rt_]sigaction wrapper with bad old/new
         sigaction handler.  Bug #369362
  r15995 Fix crash in sys_modify_ldt wrapper on bad ptr.
         Bug #369383.
  r15996 linux-x86 check get/set_thread_area pointer before use.
         Bug #369402.
  r15997 Don't check bad iovec array in process_vm_readv/writev.
         Bug #369441.
  r15998 Don't crash, but warn and return EINVAL on unknown fcntl command.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16015

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 05:23:52 +0000 (05:23 +0000)] 
Merge from trunk:
  r15989 Don't require the current working directory to exist. Bug #369209.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16014

8 years agoMerge from trunk:
Julian Seward [Wed, 5 Oct 2016 05:22:11 +0000 (05:22 +0000)] 
Merge from trunk:
  r15988 Use AM_LDFLAGS instead of LDFLAGS in exp-bbv/tests Makefiles.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16013

8 years agoMerge, from trunk:
Julian Seward [Wed, 5 Oct 2016 05:18:29 +0000 (05:18 +0000)] 
Merge, from trunk:
  r15984 Added meta mempool support into memcheck  Fixes BZ#367995
  r15985 Fix test so that leaked bytes is the same in 32 and 64 bits
  r15986 Add an optional 2nd arg to leak-autofreepool to test performance
  r15987 mc-manual.xml: Fix some mismatched open/close tags.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16012

8 years agoMerge, from trunk:
Julian Seward [Wed, 5 Oct 2016 05:11:23 +0000 (05:11 +0000)] 
Merge, from trunk:
  r15982 Fix #361615 - Inconsistent termination for multithreaded process
         terminated by signal
  r15983 Fix warning introduced by revision 15982

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16011

8 years agoMerge from trunk, r15979 (Fix expected error output of drd/tests/bar_bad* on Solaris.)
Julian Seward [Wed, 5 Oct 2016 05:06:58 +0000 (05:06 +0000)] 
Merge from trunk, r15979 (Fix expected error output of drd/tests/bar_bad* on Solaris.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16010

8 years agoMerge, from trunk:
Julian Seward [Wed, 5 Oct 2016 05:03:51 +0000 (05:03 +0000)] 
Merge, from trunk:
  r15978 Use proper compiler flags on Solaris for fma4 test.
  r15980 Fix none/tests/amd64/Makefile.am typo s/AM_CFKAGS/AM_CFLAGS/

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16009

8 years agoMerge from trunk, r15977 (ppcBE, fix the expected output file for
Julian Seward [Wed, 5 Oct 2016 04:57:27 +0000 (04:57 +0000)] 
Merge from trunk, r15977 (ppcBE, fix the expected output file for
none/tests/ppc64/jm_int_isa_2_07.stdout.exp)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16008

8 years agoMerge from trunk, r15975 (Avoid unused variable warning.)
Julian Seward [Wed, 5 Oct 2016 04:44:47 +0000 (04:44 +0000)] 
Merge from trunk, r15975 (Avoid unused variable warning.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@16007

8 years agomips64: support for fp32 mode
Petar Jovanovic [Tue, 4 Oct 2016 14:27:18 +0000 (14:27 +0000)] 
mips64: support for fp32 mode

Support for FP32 emulation on MIPS64 platforms
(including prctl(GET/SET_FP_MODE) syscalls).

Patch by Aleksandar Rikalo.

Implements the remaining parts for BZ #366079.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3253

8 years agoFix rounding mode check and instruction stxvl
Carl Love [Mon, 3 Oct 2016 15:30:46 +0000 (15:30 +0000)] 
Fix rounding mode check and instruction stxvl

In BE mode, the function FPU_rounding_mode_isOdd() has the assert
  vassert(mode->Iex.Const.con->Ico.U8 == 0x8);
The value was set using mkU32 but in BE mode the U8 maps to the upper
bits in the memory location not the lower bits.  The comparison was
fixed by changing the .U8 to .U32 to be consistent with how the field
was set.

The stxvl instruction called the 64-bit NOT not the 128-bit NOT when
calculating the store_val.

The stxvx instruction the temp word values were initialized I32 not I64.
Not sure why this wasn't caught on LE.

bugzilla  369175

git-svn-id: svn://svn.valgrind.org/vex/trunk@3252

8 years agoFix for clean helpers on BE
Carl Love [Mon, 3 Oct 2016 15:27:31 +0000 (15:27 +0000)] 
Fix for clean helpers on BE

This patch adds the missing fnptr_to_fnentry() wrapper call for the
clean helpers introduced in the ISA 3.0 support.

bugzilla  369175

git-svn-id: svn://svn.valgrind.org/vex/trunk@3251

8 years agoMerge from trunk, r15971 (Add a feature check for tests that use -march=armv8-a+crc.)
Julian Seward [Tue, 20 Sep 2016 18:59:41 +0000 (18:59 +0000)] 
Merge from trunk, r15971 (Add a feature check for tests that use -march=armv8-a+crc.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@15973

8 years agoMerge from trunk, r15970 (fix for bugzilla 361253 [s390x])
Julian Seward [Tue, 20 Sep 2016 18:57:01 +0000 (18:57 +0000)] 
Merge from trunk, r15970 (fix for bugzilla 361253 [s390x])

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@15972

8 years agoAdd a feature check for tests that use -march=armv8-a+crc.
Mark Wielaard [Tue, 20 Sep 2016 17:57:00 +0000 (17:57 +0000)] 
Add a feature check for tests that use -march=armv8-a+crc.

Older gcc versions for arm64 don't support the crc arch feature.

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

8 years agofix for bugzilla 361253 [s390x] ex_clone.c:42: undefined reference to `pthread_create'
Christian Borntraeger [Tue, 20 Sep 2016 12:31:49 +0000 (12:31 +0000)] 
fix for bugzilla 361253  [s390x] ex_clone.c:42: undefined reference to `pthread_create'

Fix provides by Dann Frazier

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

8 years agoMerge from trunk, r15968 (Add none/tests/ppc64/ppc64_helpers.h to noinst_HEADERS.)
Julian Seward [Mon, 19 Sep 2016 22:12:05 +0000 (22:12 +0000)] 
Merge from trunk, r15968 (Add none/tests/ppc64/ppc64_helpers.h to noinst_HEADERS.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@15969

8 years agoAdd none/tests/ppc64/ppc64_helpers.h to noinst_HEADERS.
Mark Wielaard [Mon, 19 Sep 2016 22:03:34 +0000 (22:03 +0000)] 
Add none/tests/ppc64/ppc64_helpers.h to noinst_HEADERS.

Makes sure that the header file will be included in the dist tar.

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

8 years agoMerge from trunk, r15966 (Add missing file for bug #358213 workaround)
Julian Seward [Mon, 19 Sep 2016 19:34:07 +0000 (19:34 +0000)] 
Merge from trunk, r15966 (Add missing file for bug #358213 workaround)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@15967

8 years agoAdd missing file for bug #358213 workaround.
Mark Wielaard [Mon, 19 Sep 2016 19:25:33 +0000 (19:25 +0000)] 
Add missing file for bug #358213 workaround.

svn commit r15962 missed adding bar_bad.stderr.exp-destroy-hang.

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

8 years agoBump the version.
Julian Seward [Mon, 19 Sep 2016 14:55:16 +0000 (14:55 +0000)] 
Bump the version.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@15965

8 years agoSwizzle external.
Julian Seward [Mon, 19 Sep 2016 14:48:56 +0000 (14:48 +0000)] 
Swizzle external.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@15964

8 years agoCreate branches/VALGRIND_3_12_BRANCH as a copy of trunk r15962.
Julian Seward [Mon, 19 Sep 2016 14:47:20 +0000 (14:47 +0000)] 
Create branches/VALGRIND_3_12_BRANCH as a copy of trunk r15962.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_12_BRANCH@15963

8 years agoCreate branches/VEX_3_12_BRANCH as a copy of trunk r3249.
Julian Seward [Mon, 19 Sep 2016 14:35:39 +0000 (14:35 +0000)] 
Create branches/VEX_3_12_BRANCH as a copy of trunk r3249.

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_12_BRANCH@3250

8 years agoWorkaround bar_bad testcase hanging with newer glibc in helgrind/drd tests.
Mark Wielaard [Mon, 19 Sep 2016 14:16:35 +0000 (14:16 +0000)] 
Workaround bar_bad testcase hanging with newer glibc in helgrind/drd tests.

This is a workaround for bug #358213 helgrind/drd pthread_barrier tests
hangs with new glibc pthread barrier implementation. This makes sure that
the tests don't hang anymore. It does this by creating new threads that
sleep and kill the other threads after some time. But this introduces
some non-determinism that might cause the tests to occassionally fail
(both against old and new glibc implementations).

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

8 years agoTestcases for fma4 instructions. Bug #369000.
Mark Wielaard [Mon, 19 Sep 2016 12:41:38 +0000 (12:41 +0000)] 
Testcases for fma4 instructions. Bug #369000.

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