This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH v2] libstdc++: Make certain exceptions transaction_safe.
- From: Dominique d'HumiÃres <dominiq at lps dot ens dot fr>
- To: Torvald Riegel <triegel at redhat dot com>
- Cc: Jonathan Wakely <jwakely at redhat dot com>, libstdc++ at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>, Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Date: Thu, 21 Jan 2016 18:29:09 +0100
- Subject: Re: [PATCH v2] libstdc++: Make certain exceptions transaction_safe.
- Authentication-results: sourceware.org; auth=none
- References: <1EF9008F-5418-4A35-AA1F-9931E464B0AA at lps dot ens dot fr> <1453230646 dot 23593 dot 13 dot camel at localhost dot localdomain> <20160119192001 dot GK15084 at redhat dot com> <572007D4-C174-4181-8CE9-88D930581163 at lps dot ens dot fr> <1453389937 dot 4592 dot 3 dot camel at localhost dot localdomain> <DC392244-3DBD-4DF1-AB7F-1689F6B30E9F at lps dot ens dot fr>
> Le 21 janv. 2016 Ã 18:15, Dominique d'HumiÃres <dominiq@lps.ens.fr> a Ãcrit :
>
>
>> Le 21 janv. 2016 Ã 16:25, Torvald Riegel <triegel@redhat.com> a Ãcrit :
>>
>> On Thu, 2016-01-21 at 11:00 +0100, Dominique d'HumiÃres wrote:
>>> Torvald,
>>>
>>> Now that I can bootstrap on darwin, I have found the following failure for libitm.c++/libstdc++-safeexc.C
>>>
>>> /opt/gcc/work/libitm/testsuite/libitm.c++/libstdc++-safeexc.C:50:2: error: unsafe function call 'std::underflow_error::underflow_error(const string&)' within atomic transaction
>>> throw T (what);
>>> ^~~~~
>>
>> Does this patch fix it (ie, mark the test unsupported)?
>
> AFAIU the error occurs at compile time and If my memory is correct the patch wonât fix the issue (not tested) and the test should be skipped on *-*-darwin* powerpc-ibm-aix*.
OK, my memory was not good!-( However the target selection in the patch is wrong, the following one works
// { dg-do run { target { ! { *-*-darwin* powerpc-ibm-aix* } } } }
Dominique