[Bug 294214] clang builtin functions break libm

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

--- Comment #8 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=855507463e0d3903d31aa7c084efbf4f819b5d63

commit 855507463e0d3903d31aa7c084efbf4f819b5d63
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-04-02 21:59:42 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-04-13 17:35:35 +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

    (cherry picked from commit 7764e9ca28a9702aed4ba7391e055ec2fcf35c41)

 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.