From c38a6199638d1967d7ffadf768d4f8d5dfaf5f04 Mon Sep 17 00:00:00 2001 From: anton <> Date: Sat, 30 May 2026 05:07:03 +0000 Subject: Disable builtins in strlcpytest.c. Otherwise, clang w/ optimizations enabled will treat strlcpy(NULL, ...) as undefined behavior and optimize the invocation away. Regression introduced after the llvm 22 upgrade. --- src/regress/lib/libc/strlcpy/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/regress/lib/libc/strlcpy/Makefile b/src/regress/lib/libc/strlcpy/Makefile index 921354432b..a6678102ba 100644 --- a/src/regress/lib/libc/strlcpy/Makefile +++ b/src/regress/lib/libc/strlcpy/Makefile @@ -1,5 +1,7 @@ -# $OpenBSD: Makefile,v 1.1 2014/12/02 20:23:05 millert Exp $ +# $OpenBSD: Makefile,v 1.2 2026/05/30 05:07:03 anton Exp $ PROG= strlcpytest +CFLAGS+=-fno-builtin + .include -- cgit v1.2.3-55-g6feb