From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C17E138432D0; Fri, 31 May 2024 20:39:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C17E138432D0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717187947; bh=tRa+ADUcr1IRA4ZLu7BC9oUuVGn+0l1MhzLJDn/mbsU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wJ2fC9j9rkrj9puEE5yCQZ2r4LdYmBxbu2yMhyGCrA1ifEODIRS7zXmtwoOjCtxcU 1t8COw1+UXVv1L40WAT+iE573HxUXrLSx2X/iGPQmaG4U3NpdM1Nc7X+kuMbQ82dvu l1cByh5L2flPt+6RvW74WB06I6VektUZPtQ/ySK4= From: "jsm28 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/115311] -fno-builtin-xxx allowing anything for xxx Date: Fri, 31 May 2024 20:39:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsm28 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115311 --- Comment #1 from Joseph S. Myers --- This definitely wouldn't work for glibc; we freely use -fno-builtin- = when e.g. aliasing double and long double functions when the formats are the sam= e, where GCC gives an error if it has the functions as built-in and so objects= to the incompatible types, and we don't limit this to the functions GCC has as built-in in a particular version but also use those options for functions t= hat might be built-in in future (e.g. C23 functions). The number of functions involved is large, needing configure tests for all of them would be a bad i= dea. That is, it's useful to use -fno-builtin- for a valid function name t= hat might be built-in in future without needing configure tests for whether it's built-in in a particular version.=