From: Pádraig Brady
Date: Wed, 17 Sep 2025 15:51:52 +0000 (+0100) Subject: tests: support -ftrivial-auto-var-init X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df414ade248344137825372651f2e24d82ce429c;p=thirdparty%2Fgnulib.git tests: support -ftrivial-auto-var-init Tested with gcc 15 and clang 20. Note clang didn't need the adjustment, but it was applied for clang also, to be defensive. * tests/test-memset_explicit.c (do_secret_stuff): Mark stack variable as not to be initialized with either zero or pattern on each invocation. tests/test-explicit_bzero.c (do_secret_stuff): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 908c46cbd1..a934b4507a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-09-17 Pádraig Brady
+
+ tests: support -ftrivial-auto-var-init
+ * tests/test-memset_explicit.c (do_secret_stuff): Mark stack variable
+ as not to be initialized with either zero or pattern on each invocation.
+ tests/test-explicit_bzero.c (do_secret_stuff): Likewise.
+
2025-09-17 Paul Eggert