[PATCH v2] libstdc++: Make certain exceptions transaction_safe.
Dominique d'Humières
dominiq@lps.ens.fr
Thu Jan 21 17:29:00 GMT 2016
> 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
More information about the Libstdc++
mailing list