]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD regtest: updates for memcheck varinfo5
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 10 Feb 2024 08:08:16 +0000 (09:08 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 10 Feb 2024 08:08:16 +0000 (09:08 +0100)
Two things:
Improvement in reading debuginfo for variables.
clang16 doing tail call optimization, so add -fno-optimize-sibling-calls

memcheck/tests/Makefile.am
memcheck/tests/varinfo5.stderr.exp-freebsd

index 9bc9a330b4390c36eccfe43217025307e57bd68a..2427bc62a33008c5e0cfca5497a161ce6624c8cd 100644 (file)
@@ -809,7 +809,7 @@ else
 endif
 
 varinfo5so_so_SOURCES   = varinfo5so.c
-varinfo5so_so_CFLAGS    = $(AM_CFLAGS) -fpic -O -Wno-shadow @FLAG_W_NO_MAYBE_UNINITIALIZED@
+varinfo5so_so_CFLAGS    = $(AM_CFLAGS) -fpic -O -Wno-shadow -fno-optimize-sibling-calls @FLAG_W_NO_MAYBE_UNINITIALIZED@
 if VGCONF_OS_IS_DARWIN
  varinfo5so_so_LDFLAGS  = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
                                -dynamiclib -all_load
index c697b8ee44c83a063250f590cda476e1c037bfcb..a22b372c949061e9ec396aeddd2a80032f0a224e 100644 (file)
@@ -128,8 +128,8 @@ Uninitialised byte(s) found during client check request
    by 0x........: varinfo3_main (tests/varinfo5so.c:118)
    by 0x........: varinfo5_main (tests/varinfo5so.c:156)
    by 0x........: main (tests/varinfo5.c:5)
- Address 0x........ is on thread 1's stack
- in frame #X, created by foo3 (varinfo5so.c:101)
+ Location 0x........ is 0 bytes inside nonstatic_local_def[6],
+ declared at varinfo5so.c:103, in frame #X of thread 1
 
 Uninitialised byte(s) found during client check request
    at 0x........: croak (tests/varinfo5so.c:29)
@@ -147,8 +147,8 @@ Uninitialised byte(s) found during client check request
    by 0x........: varinfo3_main (tests/varinfo5so.c:118)
    by 0x........: varinfo5_main (tests/varinfo5so.c:156)
    by 0x........: main (tests/varinfo5.c:5)
- Address 0x........ is on thread 1's stack
- in frame #X, created by foo3 (varinfo5so.c:101)
+ Location 0x........ is 0 bytes inside nonstatic_local_undef[8],
+ declared at varinfo5so.c:105, in frame #X of thread 1
 
 Uninitialised byte(s) found during client check request
    at 0x........: croak (tests/varinfo5so.c:29)