[v3 PATCH] Fix Darwin bootstrap failure: EBADMSG in system_error
Wed Sep 5 18:18:00 GMT 2007
The following patch fixes the current libstdc++ bootstrap failure on
powerpc-apple-darwin7.9.0. The issue is that the new system_error header
file unconditionally uses the value EBADMSG (everyone knows monosodium
glutamate isn't good). Alas not all almost POSIX systems provide this value
The fix is similar to Ben Kosnik's previous fix for FreeBSD, to add a
suitable configure check, and then guard the usafe of EBADMSG and
std::bad_message by _GLIBCXX_HAVE_EBADMSG.
The following patch has been tested on powerpc-apple-darwin7.9.0 where it
allows the a full "make bootstrap" to complete without problems. A
top-level "make -k check" also reveals that the testcase fixes are
sufficient to prevent them failing (as with Ben's FreeBSD patch).
Ok for mainline?
2007-09-05 Roger Sayle <firstname.lastname@example.org>
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add EBADMSG for darwin.
* configure: Regenerate.
* include/std/system_error: Guard.
* testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Adjust
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Libstdc++