16943 Commits

Author SHA1 Message Date
Paul Floyd
2269aeb76c Dnother iteration for getting the right expected line numbers. 2021-10-11 08:16:32 +02:00
Paul Floyd
46607a76bd memalign is available on FreeBSD as a non-portable interface
Remove #if block protecting memalign calls
2021-10-10 22:15:59 +02:00
Paul Floyd
8c0f72667e Fix the ramaining easily fixable warnings with clang
There's one remaining
memalign2.c:29:9: warning: unused variable 'piece' [-Wunused-variable]
because of a block of #if FreeBSD for memalign that looks unnecessary

Otherwise all that is left is a few like

warning: unknown warning option '-Wno-alloc-size-larger-than'; did you mean '-Wno-frame-larger-than='? [-Wunknown-warning-option]

because there is no standard for compiler arguments.
2021-10-10 21:56:49 +02:00
Paul Floyd
03f1c090f6 Remove a couple more warnings
suffix rule with dependency generates a warning
https://www.gnu.org/software/make/manual/html_node/Error-Messages.html
(bottom of page)

the other is a short initialized with an int literal that wraps to
a negative short value
2021-10-10 20:32:44 +02:00
Mark Wielaard
bfd28bb9f8 Remove more warnings from tests
GCC12 catches various issues in tests at compile time that we want to
catch at runtime. Also glibc 2.34 deprecated various mallinfo related
functions. Add the relevant -Wno-foobar flags to those tests.  In one
case, unit_oset.c, the warning was correct and the uninitialized
variable was explicitly set.
2021-10-10 17:19:34 +02:00
Mark Wielaard
7b1a2b1edd Fix printf warning in libmpiwrap.c
libmpiwrap.c:1379:45: warning: format '%d' expects argument of type 'int',
but argument 5 has type 'MPI_Request' {aka 'struct ompi_request_t *'}

Unfortunately MPI_Request is an opaque type (we don't really know what
is in struct ompi_request_t) so we cannot simply print it as int. In
other places we print an MPI_Request as 0x%lx by casting it to an
unsigned long. Do the same here.
2021-10-10 16:38:24 +02:00
Mark Wielaard
4015813336 Remove some warnings from tests
Various tests do things which we want to detect at runtime, like
ignoring the result of malloc or doing a deliberate impossibly large
allocation or operations that would result in overflowing or
truncated strings, that generate a warning from gcc.

In once case, mq_setattr called with new and old attrs overlapping,
this was explicitly fixed, in others -Wno-foobar was added to silence
the warning. This is safe even for older gcc, since a compiler will
ignore any -Wno-foobar they don't know about - since they do know they
won't warn for foobar.
2021-10-10 15:56:50 +02:00
Paul Floyd
d187106a76 Updating a few expecteds based on valgrind-testresults
I tried to work out what the expecteds should be based on the changes to
the testcase source so there may be a bit more to do.
2021-10-10 12:03:38 +02:00
Paul Floyd
1c57706fbd Bug 443314 - In the latest GIT version, Valgrind with "--trace-flags" crashes at "al" register 2021-10-09 23:02:28 +02:00
Paul Floyd
c3002642d3 Bug 439326 - Valgrind 3.17.0 won't compile with Intel 2021 oneAPI compilers
Also reorder NEWS
2021-10-09 21:25:22 +02:00
Paul Floyd
80459895c4 FreeBSD support, last loose ends
One merge I missed and make a couple of changes to remove
compiler warnings.
2021-10-09 15:13:50 +02:00
Paul Floyd
68bb7c063f FreeBSD support, patch 12
coregrind modified files
2021-10-09 15:01:08 +02:00
Paul Floyd
e2e5d75f5c FreeBSD support, patch 11
coregrind added files
the key mechanics and the syscall wrappers
2021-10-09 14:11:48 +02:00
Paul Floyd
1bbd829adb FreeBSD support, patch 10
Missing new expected file
2021-10-09 12:51:41 +02:00
Paul Floyd
7c5d720a2b FreeBSD support, patch 10
memcheck
No code changes. A few modified tests. Adds new FreeBSD specific tests.
2021-10-09 12:37:17 +02:00
Paul Floyd
3c53eea626 Add copyright statements to added FreeBSD headers 2021-10-08 22:08:12 +02:00
Paul Floyd
a456fcef6d FreeBSD support, patch 9 supplemental
These files are now derived objects and should have been removed in the
previous change.
2021-10-07 23:02:29 +02:00
Paul Floyd
53dd9bd255 FreeBSD support, patch 9
cachegrind callgrind dhat exp-bbv gdbserver_tests massif none mpi shared

Mostly these are just updates (and new testcases) under new/tests
The other directories have just #ifdef changes
2021-10-07 22:41:22 +02:00
Paul Floyd
3d25fd4a6c FreeBSD support, patch 8b
nightly directory
2021-10-07 21:39:25 +02:00
Paul Floyd
85bbe2853e FreeBSD support, patch 5
drd and helgrind tests
2021-10-07 21:33:45 +02:00
Mark Wielaard
f22758d6da Fix make distcheck by removing references to uncommitted files
Some files for the freebsd port have not yet committed, but were
already referenced in the Makefiles. Remove those references for
now to make distcheck happy.

	* coregrind/Makefile.am (valgrind_SOURCES): Remove
	launcher-freebsd.c
	* drd/tests/Makefile.am (check_PROGRAMS): Remove
	thread_name_freebsd.
	* none/tests/Makefile.am (SUBDIRS): Remove freebsd.
	(DIST_SUBDIRS): Likewise.
	* none/tests/freebsd/filter_stderr: Removed.
2021-10-07 13:43:19 +02:00
Paul Floyd
a6096335c3 FreeBSD support, patch 8a
docs directory
2021-10-07 08:30:33 +02:00
Paul Floyd
e2583c02a5 FreeBSD support, patch 2
Files in the root directory
Several Makefile.am files that have dependencies on FreeBSD autoconf
variables. Included a few new filter files to act as placeholders
to create new freebsd subdirectories.

Updated NEWS with the FreeBSD bugzilla items plus a couple of other
items fixed indirectly.
2021-10-07 08:18:47 +02:00
Paul Floyd
b128b20e66 FreeBSD support, patch 7
tests directory
configure.ac to generate tests/filter_discards and tests/filter_stderr_basic
.gitignore to ignore these generated filters
2021-10-06 22:58:15 +02:00
Paul Floyd
e207312100 FreeBSD support, patch 5
helgrind code
Mainly intercepts and changes to conditional compilation
2021-10-06 22:17:18 +02:00
Paul Floyd
7074904a37 FreeBSD support, patch 4
DRD code
Mainly just intercepts, but also a hairy fix for early acces to
pthread_self()
2021-10-06 21:50:49 +02:00
Paul Floyd
7774acbc9c FreeBSD support, patch 3
include directory
New FreeBSD specific headers
SONAMES for FreeBSD libraries
2021-10-06 21:24:17 +02:00
Paul Floyd
33012dd82b FreeBSD support, patch 1
Primarily these changes concern the nature of alignment generated signals. On Linux, these produce SIGSEGV and n FreeBSD they produce SIGBUS.
2021-10-05 13:02:27 +02:00
Mark Wielaard
efe91b114a Add 368960 WARNING: unhandled amd64-linux syscall: 163 (acct) in NEWS
Fixed in commit 9aa51a6e2
Hook up acct syscall for amd64, mips32, ppc32 and ppc64
2021-10-05 12:27:49 +02:00
Andreas Arnez
bc78771b8b s390x: Add missing "cc" clobbers in test case inline asms
Some inline assemblies in various s390x test cases miss specifying the
condition code "cc" in the clobber list.  Although this has not actually
been seen to cause wrong code generation, it certainly might, so fix this.
2021-10-04 14:50:46 +02:00
Andreas Arnez
ebfbc95417 s390x: Fix compile warnings in test cases
Some GCC versions emit the following warnings for some s390x-specific test
cases:

   warning: listing the stack pointer register '15' in a clobber list is
   deprecated

   warning: this 'else' clause does not
   guard... [-Wmisleading-indentation] ...this statement, but...

Fix these.

Most of inline assemblies declaring r15 as clobbered do not actually
change its value.  Only in stmg_wrap() it becomes necessary to save and
restore r15.
2021-10-04 14:50:26 +02:00
Mark Wielaard
9aa51a6e25 Hook up acct syscall for amd64, mips32, ppc32 and ppc64
There was already a generic linux wrapper for acct, but it was not
hooked up for all linux arches.
2021-10-04 11:34:08 +02:00
Mark Wielaard
3adeaba232 Ajust filter_gdb for arm64 with eglibc 2.19 and gdb 7.7.1
Older ubuntu arm64 setups used eglibc 2.19 and gdb 7.7.1.  In that
case select.c could be under linux/generic and the select argument
list could be split up differently over several lines. Adjust
filter_gdb to catch those differences.

Also checked against an Debian arm64 with glibc 2.31 and gdb 10.1.
2021-10-02 12:03:46 +02:00
Mark Wielaard
9f6b917af2 Add shell.stderr.exp-dash4 to none/tests/scripts/Makefile.am EXTRA_DIST 2021-10-02 10:29:44 +02:00
Mark Wielaard
345edda439 Extend filter_vgdb for GNU gdb (Debian 10.1-2) 10.1.90.20210103-git
On Debian 11.0 arm64 gdb will emit a similar (stray) ENOTTY message
as on SLES11, but for _exit.c instead of rtld.c.
2021-10-01 22:46:30 +02:00
Mark Wielaard
ae3c1b9190 Add none/tests/scripts/shell.stderr.exp-dash4 for dash 0.5.11
dash 0.5.11 produces slightly different error messagess.
The new exp file is similar to shell.stderr.exp-dash3 but
with the extra (second) "shell: " output removed.
2021-10-01 22:27:57 +02:00
Paul Floyd
4160284cbd Add generated glibc drd and helgrind files to .gitignore 2021-10-01 20:41:44 +02:00
Carl Love
bcbfa9e900 fix compiler print format warnings in test_isa_3_0.c
GCC fixed the compiler warnings long long types.  Add explicit
casts so gcc will not generate compile warnings.
2021-09-30 18:12:33 -05:00
Carl Love
ef411515d9 Fix compiler warnings for subnormal_test.c
GCC fixed the compiler warnings long long types.  Add explicit
casts so gcc will not generate compile warnings.
2021-09-30 18:11:35 -05:00
Carl Love
9c22ad0024 Fixes for the lxvx and stxvx instructions
The lxvx and stxvx tests are moved into their own separate
tests.  Add the expec files for the new test.

Update the expected results for the altivec test.
2021-09-30 18:11:24 -05:00
Carl Love
f1d6dec601 Fix tests for mfspr
Split out the mfspr tests into a separate test using command line option
"-M".  The value in the LR and CTR registers changed.  It appears the
changes are due to changes in the test program jm-insns.c.  Splinting
these instructions out will help to minimize the size of future updates
when the test program changes.
2021-09-30 18:08:54 -05:00
Carl Love
a9f41e0c0b fix sraw, srawi, srad, sradi instructions
For ISA 3.0 and beyond, the instructions also write the XER register.

Split the instructions out to a new command line option so we can create
an ISA 2.07 expect file, ISA 3.0 LE and ISA 3.0 BE expect file. The new
command line option is "-s" to just run just these four instructions.
2021-09-30 17:53:39 -05:00
Carl Love
a3c3f5394a New test for the ISA 3.0 mcrxrx instruction.
Add new test.
2021-09-30 17:49:39 -05:00
Carl Love
7bd75320a0 Add support for the mcrxrx instruction.
The mcrxrx instruction was introduced in ISA 3.0. It was missed when the
ISA 3.0 support was added to Valgrind.

The mcrxr instruction is not supported on ISA 3.0 and beyond. The
instructions both do a move to the condition register however the mcrxrx
moves [OV|OV32|CA|CA32].  Where the mcrxr instruction moves XER[32:35]
(S0, OV, and CA bits) to the CR.
2021-09-30 17:48:24 -05:00
Carl Love
7d2cec7f24 Fixes for mcrxr instruction
Add .machine directives to ensure the mcrxr instruction is assembled
for power 6.  The instruction is not supported on later platforms.
2021-09-30 17:32:25 -05:00
Carl Love
518a2d59ac Fix dfp tests.
Due to changes between the compiler and linker, we need to add .machine
arguments to configure file to properly detect the availability of the
dfp instructions.

Add print statement if HAS_DFP is not enabled to make it
easier to determine when HAS_DFP is not enabled.
2021-09-30 17:30:13 -05:00
Carl Love
475916cbd3 Add .machine directives for the darn instruction 2021-09-30 17:30:09 -05:00
Carl Love
e23c2a2291 Fixes to add .machine directives for assembly instructions 2021-09-30 17:30:05 -05:00
Tulio Magno Quites Machado Filho
a63e9c28b5 powerpc: Add .machine directives for scv, copy, paste, cpabort instructions
GCC is no longer passing the "-many" flag to the assembler.  So, the
inline assembly instructions statements need to use the .machine directives
for the specific platform.

(gcc commit e154242724b084380e3221df7c08fcdbd8460674 ; "[RS6000] Don't
pass -many to the assembler".

Hardware sync instruction (hwsync) added after the copy, paste and cpabort
instructions to improve the reliability of the test.
2021-09-30 17:30:01 -05:00
carl love
a9b5f6cfeb Configure,makefile and test case fixes for older powerpc targets.
Assorted changes to fix up compile issues as seen during regression
testing of VG on hardware back as far as Power 6 (ISA 2.05).
2021-09-30 17:29:54 -05:00