From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0E8C93858429; Sat, 17 Sep 2022 22:19:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E8C93858429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663453156; bh=L39cpYHPzWWwp8luLrqNlvxldnUOABLfdDal1WBY/aU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KLCC0H0drRTohPxES+n42LG0a1HwWtdA85fxeQpbWJVP/XZfkHJtKrqWnghtgAMyU /Pl9O5saHimULnOyqOAUVjGpzFOjwjWAd3TKs/3GgK0TRzlu8uooLiqO8TXS9BFJkV iYMjNNb+KBrTFDGYaPWSSYpMiIbwOlnZtQx4Hjyc= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/103626] _GLIBCXX_HOSTED should respect -ffreestanding Date: Sat, 17 Sep 2022 22:19:14 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: --- 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=3D103626 --- Comment #3 from Jonathan Wakely --- I don't think we need to add the #error to every header. For a start, users never include the bits/* headers directly, and if they do, it's their probl= em. So we only need to mark the standard headers as hosted-only. And if we add = it to , that already covers a large number of them, because they inclu= de that.=