|
From: Paul F. <pa...@so...> - 2026-03-13 20:38:33
|
https://sourceware.org/cgit/valgrind/commit/?id=bc50f0727dc307cae6557619ccb4e5d5306c5f5c commit bc50f0727dc307cae6557619ccb4e5d5306c5f5c Author: Paul Floyd <pj...@wa...> Date: Fri Mar 13 21:37:06 2026 +0100 Regtest: use -fsized-deallocation with memcheck xmas-tree test Diff: --- memcheck/tests/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index 36f9736a9b..3ce55d123a 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -629,8 +629,10 @@ check_PROGRAMS += cxx17_aligned_new sized_aligned_new_delete_args \ new_aligned_delete_default \ sized_aligned_new_delete_misaligned1 \ sized_aligned_new_delete_misaligned2 \ - sized_aligned_new_delete_misaligned3 \ - xmas_tree + sized_aligned_new_delete_misaligned3 +if HAVE_FSIZED_DEALLOCATION +check_PROGRAMS += xmas_tree +endif endif if HAVE_CLOSE_RANGE @@ -981,4 +983,4 @@ writev1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_STRINGOP xml1_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_USE_AFTER_FREE@ xmas_tree_SOURCES = xmas_tree.cpp -xmas_tree_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_MISMATCHED_NEW_DELETE@ @FLAG_W_ALLOC_SIZE_LARGER_THAN@ +xmas_tree_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_MISMATCHED_NEW_DELETE@ @FLAG_W_ALLOC_SIZE_LARGER_THAN@ @FLAG_FSIZED_DEALLOCATION@ |