This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]