This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: RFA: v3 PATCH to add on_quick_exit/quick_exit to std
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: dominiq at lps dot ens dot fr
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, bkoz at redhat dot com, jason at redhat dot com
- Date: Tue, 12 Feb 2013 12:39:52 +0100
- Subject: Re: RFA: v3 PATCH to add on_quick_exit/quick_exit to std
- References: <20130212112631.383213BE18@mailhost.lps.ens.fr> <511A283D.3010401@oracle.com>
On 02/12/2013 12:32 PM, Paolo Carlini wrote:
On 02/12/2013 12:26 PM, dominiq@lps.ens.fr wrote:
The test fails on x86_64-apple-darwin10 with
FAIL: 18_support/quick_exit/quick_exit.cc (test for excess errors)
Excess errors:
/opt/gcc/work/libstdc++-v3/testsuite/18_support/quick_exit/quick_exit.cc:36:3:
error: 'at_quick_exit' is not a member of 'std'
/opt/gcc/work/libstdc++-v3/testsuite/18_support/quick_exit/quick_exit.cc:38:3:
error: 'quick_exit' is not a member of 'std'
UNRESOLVED: 18_support/quick_exit/quick_exit.cc compilation failed to
produce executable
Looks like the configure test isn't strict enough and ends up defining
the macros when the darwin libc actually doesn't provide the
functions. Jason may want to review it...
An alternate explanation would be that darwin provides the functions but
uses c_std instead of c_global. I can add back the functions to
c_std/cstdlib too, but that seems wrong, because, as I said, normally we
don't provide C++11 facilities in c_std.
Paolo.