From 6ad9b8d8b61479603f1c01902ef75748924d35b5 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sat, 10 Feb 2024 09:08:16 +0100 Subject: [PATCH] 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 --- memcheck/tests/Makefile.am | 2 +- memcheck/tests/varinfo5.stderr.exp-freebsd | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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) -- 2.11.4.GIT