From: Paul Floyd Date: Sat, 10 Feb 2024 08:08:16 +0000 (+0100) Subject: FreeBSD regtest: updates for memcheck varinfo5 X-Git-Tag: VALGRIND_3_23_0~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ad9b8d8b61479603f1c01902ef75748924d35b5;p=thirdparty%2Fvalgrind.git FreeBSD regtest: updates for memcheck varinfo5 Two things: Improvement in reading debuginfo for variables. clang16 doing tail call optimization, so add -fno-optimize-sibling-calls --- diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index 9bc9a330b..2427bc62a 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -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 diff --git a/memcheck/tests/varinfo5.stderr.exp-freebsd b/memcheck/tests/varinfo5.stderr.exp-freebsd index c697b8ee4..a22b372c9 100644 --- a/memcheck/tests/varinfo5.stderr.exp-freebsd +++ b/memcheck/tests/varinfo5.stderr.exp-freebsd @@ -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)