From nobody Thu Apr 2 20:27:31 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fmth32VFfz6YhG6 for ; Thu, 02 Apr 2026 20:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fmth31x62z3mDl for ; Thu, 02 Apr 2026 20:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775161651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ia7z3bfYyMQLFpt5xIqY8LNkhFNHoKxLM8iPcGElQ7Q=; b=eKsF01NpvkVUaYx16kw8dNm7mdYuK222CldphTJxDoxnivthe5mf4ryRpwpvcKW8hYbJqB Gc7gVPYPmkHzbuEUhV3CHe9cZK1+ifeq13bNj4qKuZKwu/nbLhbp7EJkPIE6FHxpFqS6QD 3X7AmikpCWfdD+bFXWMNQU7aPskWRwiM2yyQbqsnfI8aazj8L8IAJR6XgIwARi4OiLyveQ oRb8ry/5O9p2vBSnL49AS6Os7UIjRASOvtNrQxhp0RVhUFj6zxHLGl9ZcnElHVb1KNU2z1 U0IVL0LEjzyHW5di1ytBz/fCZ0aA5cQKXiT+DPM4Q2/66F0RAMZdtu60qYcvow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775161651; a=rsa-sha256; cv=none; b=FgF/StctUo7keZAU6molsP4zqV85f9xu8PZp7PubXgwoYUlre34PgavGfGXtv/vy0GraRk PWh1Frr82tla4FsV5NKyaaMpE32zWuPhaVNZKxbEbgwjfxmSiNc9F8eXWLgcXCAdxHI0+B HNQ2n2dYlhIRkpgc+E4Q+CGvFWw6Fqma1z9iFESTDwbM7fITwDLGPkI3r6trspBxe+1JXd xpgwy3YNiOoh4iOm+XLVeGxV2dposWdLI12XXuxuJiiil+Yln2dpBcxh1Exk/QaJBnVJaL D32etTnmAUKRHsXawcdz9RFYhVunArB5vw7Suse3abc/WRSYdkOA9H87j5Psqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775161651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ia7z3bfYyMQLFpt5xIqY8LNkhFNHoKxLM8iPcGElQ7Q=; b=GffyWp87HfFtZbfWCYW5DXEA3KirxYmutKXtEFRDGQpp2rYRC7hreeDJultKuK712mdQwS Uh/B1ufZm9rWqBq6WTQfCp9uF3DepG8KN2HrMy9ZV5tQ9ClWY1dlCO1HAH+Yi0dqW1892h fuljbNzsWHeywexDM+seA3Xrx16xncZhYLKOV9MrodXURym12kMuALhbIvW9J0wTt3t2YD 0tWuBRwzu8Ko0X9lCLaYzmEUfFHjNHAchNGVOzhiX4rpi/6UGrJeSzGZlTdIBX1AHgTlHo oLmj+X/yQoPiKEd/bk0p1WL1fmCryXPGD0nwKchc8sghTo3g3aaj/2/7HMZ0RA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4fmth31SHFz2bj for ; Thu, 02 Apr 2026 20:27:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 632KRV79054453 for ; Thu, 2 Apr 2026 20:27:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 632KRVqF054452 for bugs@FreeBSD.org; Thu, 2 Apr 2026 20:27:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 294214] clang builtin functions break libm Date: Thu, 02 Apr 2026 20:27:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fuz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D294214 Robert Clausecker changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fuz@FreeBSD.org --- Comment #1 from Robert Clausecker --- This is the same story as memcmp(). The C standard does not specify whethe= r +0 or -0 is returned if the two are passed to fmax() or fmin() and compilers w= ill 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. --=20 You are receiving this mail because: You are the assignee for the bug.=