Message ID | 9b57331b-b6db-6a89-7672-12f72c8eacce@foss.arm.com |
---|---|
State | New |
Headers | show |
On Mar 10, 2017, at 8:22 AM, Jiong Wang <jiong.wang@foss.arm.com> wrote: > > 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? That's fine, if you want. The other solution is to actually fix newlib, which would be a better solution, if you have the time.
diff --git a/gcc/testsuite/g++.dg/tls/thread_local-order2.C b/gcc/testsuite/g++.dg/tls/thread_local-order2.C index 3cbd257b5fab05d9af7aeceb4f97e9a79d2a283e..d274e8c606542893f8a792469e075056793335ea 100644 --- a/gcc/testsuite/g++.dg/tls/thread_local-order2.C +++ b/gcc/testsuite/g++.dg/tls/thread_local-order2.C @@ -6,7 +6,7 @@ // { dg-require-effective-target c++11 } // { dg-add-options tls } // { dg-require-effective-target tls_runtime } -// { dg-xfail-run-if "" { hppa*-*-hpux* *-*-solaris* } } +// { dg-xfail-run-if "" { { hppa*-*-hpux* *-*-solaris* } || { newlib } } } extern "C" void abort(); extern "C" int printf (const char *, ...);