This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix order of directives in g++.dg/torture/pr34641.C
- From: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Jan 2008 10:22:18 +0000
- Subject: [committed] Fix order of directives in g++.dg/torture/pr34641.C
g++.dg/torture/pr34641.C was failing for PIC-incapable targets like
MIPS16 because the "dg-do compile" came after the effective-target
requirements. We could simply remove the "dg-do compile" (it's the
default), but there seems to be a preference to be explicit, so...
...tested on x86_64-linux-gnu and mipsisa64-elfoabi. Applied as obvious.
Richard
gcc/testsuite/
* g++.dg/torture/pr34641.C: Put the dg-do first.
Index: gcc/testsuite/g++.dg/torture/pr34641.C
===================================================================
--- gcc/testsuite/g++.dg/torture/pr34641.C 2008-01-28 11:33:12.000000000 +0000
+++ gcc/testsuite/g++.dg/torture/pr34641.C 2008-01-28 11:33:17.000000000 +0000
@@ -1,7 +1,7 @@
+// { dg-do compile }
// { dg-require-effective-target fpic }
// { dg-require-visibility "" }
// { dg-options "-fPIC" }
-// { dg-do compile }
typedef __SIZE_TYPE__ size_t;