This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Tweak tm/pr47573.C testcase (PR c++/64884)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Feb 2015 22:25:39 +0100
- Subject: [PATCH] Tweak tm/pr47573.C testcase (PR c++/64884)
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
This patch tweaks the pr47573.C testcase, so that it is run only on
comdat_group target. It is true that comdat_group is stricter than
comdat, but we don't have an effective-target for the latter and I'm not
sure what exactly to test for.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
2015-02-12 Jakub Jelinek <jakub@redhat.com>
PR c++/64884
* g++.dg/tm/pr47573.C: Only run on comdat_group effective targets.
--- gcc/testsuite/g++.dg/tm/pr47573.C.jj 2011-11-08 23:35:11.000000000 +0100
+++ gcc/testsuite/g++.dg/tm/pr47573.C 2015-02-12 14:26:23.873151135 +0100
@@ -1,4 +1,7 @@
-// { dg-do compile }
+// Without comdat support, we don't see the body of the
+// extern template class constructor, so limit this to
+// known comdat targets.
+// { dg-do compile { target comdat_group } }
// { dg-options "-fgnu-tm" }
template<typename _Tp> class allocator
Jakub