From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 610153858D20; Fri, 28 Jul 2023 10:54:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 610153858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690541691; bh=fMMbKGpDbH8Y0FJNEsNZ23c3hkJphEJN+5VbASNMTjQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x+8UVQqJKj3OKx+xlvkYAX2x50WUkQnIU1N/naYunCBl2jB8oWtcRL7inNMu7pvrK 9b3UEAN6hNcoLmm++Kk90W2+KJphJrPS+qV4u/1LPOzJ5Zl15Bww/fRJZyQNEsPY6Y AGwu1Gh2Aah0s1a+YhlFOYW1p0kdPHX0imATavAo= From: "arsen at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109814] [13/14 Regression] freestanding using cmath does not compile anymore Date: Fri, 28 Jul 2023 10:54:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arsen at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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=3D109814 --- Comment #13 from Arsen Arsenovi=C4=87 --- (In reply to Jonathan Wakely from comment #12) > I suppose we could enable if hosted || newlib, but that wouldn't > always be right because (IIUC) you can configure newlib without any of the > libm functions. I suppose if you use such a newlib and then include > that's your own fault and you get to keep both pieces. that seems reasonable, though my thinking is that maybe we can bring newlib closer to hosted in general. it even features C buffered IO (AFAIU) and malloc, so it could provide the stuff that 'blocks' other features from wor= king on freestanding (besides threading, presumably? I'd need to check what exa= ctly newlib provides)=