From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2FC0B3858400; Wed, 29 Dec 2021 23:57:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FC0B3858400 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100057] There are no freestanding C++ Date: Wed, 29 Dec 2021 23:57:39 +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: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com X-Bugzilla-Status: WAITING 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2021 23:57:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100057 --- Comment #35 from cqwrteur --- (In reply to Nicolas Noble from comment #34) > After some digging, I found out this in the acinclude.m4 file of the > libstdc++-v3 folder: >=20 > AC_DEFUN([GLIBCXX_ENABLE_HOSTED], [ > AC_ARG_ENABLE([hosted-libstdcxx], > AC_HELP_STRING([--disable-hosted-libstdcxx], > [only build freestanding C++ runtime support]),, > [case "$host" in > arm*-*-symbianelf*) > enable_hosted_libstdcxx=3Dno > ;; > *) > enable_hosted_libstdcxx=3Dyes > ;; > esac]) >=20 >=20 > Basically, it looks like the "disable hosted libstdc++" flag is only hono= red > when building on a host triple that's arm + symbian. The documentation + > reporting for this is extremely misguiding. The documentation should at > least specify this only works in a very narrow context, and the configure > script should probably error out if the user asks for a feature it can't > actually provide. wg21 just did a crappy job on this shit and GCC does not give a shit on freestanding either. You do not have std::addressof, std::move, std::array but the fucking ISO forces you to use EH and RTTI. C++ considered harmful for embedded and kernel.=