Date: Thu, 02 Apr 2026 20:27:31 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 294214] clang builtin functions break libm Message-ID: <bug-294214-227-b1BUBxVvRJ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-294214-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294214 Robert Clausecker <fuz@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fuz@FreeBSD.org --- Comment #1 from Robert Clausecker <fuz@FreeBSD.org> --- This is the same story as memcmp(). The C standard does not specify whether +0 or -0 is returned if the two are passed to fmax() or fmin() and compilers will optimise this. We should instead document that our libm supports a stricter behaviour than what the C standard guarantees (as we did with memcmp()) and recommend that users pass -fno-builtin-fmax and -fno-builtin-fmin or use one of the new C23 functions if they wish to have the stricter behaviour guaranteed. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294214-227-b1BUBxVvRJ>
