From 93958bde180198766d87bd522aae162eb6691bfe Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 2 Jul 2025 03:03:59 +0200 Subject: [PATCH] libtests/malloc*: Disable compiler builtins GCC 15 performs some optimizations based on compiler builtins which break the tests. Use -fno-builtin to disable the optimizations. --- spec/build/testsuites/libtests/malloc04.yml | 3 ++- spec/build/testsuites/libtests/malloctest.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/build/testsuites/libtests/malloc04.yml b/spec/build/testsuites/libtests/malloc04.yml index 4d29a73eeb..1cc88a7c7c 100644 --- a/spec/build/testsuites/libtests/malloc04.yml +++ b/spec/build/testsuites/libtests/malloc04.yml @@ -1,6 +1,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: test-program -cflags: [] +cflags: +- -fno-builtin copyrights: - Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: [] diff --git a/spec/build/testsuites/libtests/malloctest.yml b/spec/build/testsuites/libtests/malloctest.yml index 8989a9cbae..1a8f1bc981 100644 --- a/spec/build/testsuites/libtests/malloctest.yml +++ b/spec/build/testsuites/libtests/malloctest.yml @@ -1,6 +1,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: test-program -cflags: [] +cflags: +- -fno-builtin copyrights: - Copyright (C) 2020 embedded brains GmbH & Co. KG cppflags: []