[PING 6, PATCH] Remove xfail from thread_local-order2.C.

Jiong Wang jiong.wang@foss.arm.com
Fri Mar 10 16:22:00 GMT 2017


On 07/02/17 16:01, Mike Stump wrote:
> On Feb 7, 2017, at 2:20 AM, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> wrote:
>> No.  In fact, I'd go for something like this:
>>
>> 2017-02-07  Dominik Vogt  <vogt@linux.vnet.ibm.com>
>> 	    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>>
>> 	* g++.dg/tls/thread_local-order2.C: Only xfail execution on
>> 	*-*-solaris*.
>>
>> # HG changeset patch
>> # Parent  031bb7a327cc984d387a8ae64e7c65d4b8793731
>> Only xfail g++.dg/tls/thread_local-order2.C on Solaris
>>
>> diff --git a/gcc/testsuite/g++.dg/tls/thread_local-order2.C b/gcc/testsuite/g++.dg/tls/thread_local-order2.C
>> --- a/gcc/testsuite/g++.dg/tls/thread_local-order2.C
>> +++ b/gcc/testsuite/g++.dg/tls/thread_local-order2.C
>> @@ -2,10 +2,11 @@
>> // that isn't reverse order of construction.  We need to move
>> // __cxa_thread_atexit into glibc to get this right.
>>
>> -// { dg-do run { xfail *-*-* } }
>> +// { dg-do run }
>> // { dg-require-effective-target c++11 }
>> // { dg-add-options tls }
>> // { dg-require-effective-target tls_runtime }
>> +// { dg-xfail-run-if "" { *-*-solaris* } }
>>
>> extern "C" void abort();
>> extern "C" int printf (const char *, ...);
>>
>> This way one can easily add per-target PR references or explanations,
>> e.g. for darwin10 or others should they come up.
>>
>> Tested on i386-pc-solaris2.12 and x86_64-pc-linux-gnu.  Ok for mainline?
> Ok.
>
> I think that addresses most all known issues.  I'll pre-appove any additional targets people find as trivial.  For example, if darwin10 doesn't pass, then *-*-darwin10* would be fine to add if that fixes the issue.  I don't happen to have one that old to just test on.

I am seeing this failure on arm and aarch64 bare-metal environment where newlib are used.

This patch also XFAIL this testcase on newlib.

OK for trunk?

Regards,
Jiong

gcc/testsuite/
2017-03-10  Jiong Wang  <jiong.wang@arm.com>

         * g++.dg/tls/thread_local-order2.C: XFAIL on newlib.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: xfail-new.patch
Type: text/x-diff
Size: 650 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170310/918de25b/attachment.bin>


More information about the Gcc-patches mailing list