https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100057
--- Comment #35 from cqwrteur <unlvsur at live dot com> --- (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: > > 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=no > ;; > *) > enable_hosted_libstdcxx=yes > ;; > esac]) > > > Basically, it looks like the "disable hosted libstdc++" flag is only honored > 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.