From 5c0a28d4c59e888f67e33cf76cfc855e57a00cc2 Mon Sep 17 00:00:00 2001
From: Jiong Wang <jiong.wang@arm.com>
Date: Wed, 29 Mar 2017 10:33:04 +0000
Subject: [PATCH] [g++, testsuite] XFAIL thread_local-order2.C on newlib

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

As commented by Mike, it's better that newlib support this feature, tracked by

  https://sourceware.org/bugzilla/show_bug.cgi?id=21325

From-SVN: r246563
---
 gcc/testsuite/ChangeLog                        | 4 ++++
 gcc/testsuite/g++.dg/tls/thread_local-order2.C | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e7ac462932ba..6801cba65fc9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2017-03-28  Jiong Wang  <jiong.wang@arm.com>
+
+	* g++.dg/tls/thread_local-order2.C: XFAIL on newlib.
+
 2017-03-28  Segher Boessenkool  <segher@kernel.crashing.org>
 
 	PR testsuite/43496
diff --git a/gcc/testsuite/g++.dg/tls/thread_local-order2.C b/gcc/testsuite/g++.dg/tls/thread_local-order2.C
index 3cbd257b5fab..d274e8c60654 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 *, ...);
-- 
GitLab