[Bug 294214] clang builtin functions break libm
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 294214] clang builtin functions break libm"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Apr 2026 01:45:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294214 --- Comment #6 from Steve Kargl <kargl@FreeBSD.org> --- Ugh*ugh. The addition of '#pragma STDC FENV_ACCESS ON' changes clang's to agree with fmax(3). % cc -o z fmax.c -lm && ./z fmax( 0, 0) = 0 expecting 0 fmax(-0, 0) = -0 expecting 0 <-- FAILED fmax( 0, -0) = 0 expecting 0 fmax(-0, -0) = -0 expecting -0 % cc -o z fmax.c -DWITH_PRAGMA -lm && ./z fmax( 0, 0) = 0 expecting 0 fmax(-0, 0) = 0 expecting 0 fmax( 0, -0) = 0 expecting 0 fmax(-0, -0) = -0 expecting -0 -- You are receiving this mail because: You are the assignee for the bug.