[Bug 294214] clang builtin functions break libm

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Apr 2026 17:00:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294214

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=7764e9ca28a9702aed4ba7391e055ec2fcf35c41

commit 7764e9ca28a9702aed4ba7391e055ec2fcf35c41
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-04-02 21:59:42 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-04-06 17:00:15 +0000

    fmax.3: Add caveat for going beyond C std requirements

    libm's fmax and fmin family of functions treat +0.0 as greater than
    -0.0.  This is not required by the C standard, so the user may not see
    this behaviour due to compiler optimization.

    PR:             294214
    Reviewed by:    fuz
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D56230

 lib/msun/man/fmax.3 | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.