Testsuite patch for PR testsuite/27032

Steve Ellcey sje@cup.hp.com
Tue May 2 20:29:00 GMT 2006


I will check this in as obvious if no one objects, apparently it is
necessary to have the dg-require-effective-target line after the dg-do
line or else the dg-do overrides dg-require-effective-target and the
test gets run on systems that don't support named sections.

Tested on hppa1.1-hp-hpux11.11.

Steve Ellcey
sje@cup.hp.com

2006-05-02  Steve Ellcey  <sje@cup.hp.com>

	PR testsuite/27032
	* gcc.c-torture/compile/pr23237.c: Move dg-do line.


Index: gcc.c-torture/compile/pr23237.c
===================================================================
--- gcc.c-torture/compile/pr23237.c	(revision 113438)
+++ gcc.c-torture/compile/pr23237.c	(working copy)
@@ -1,8 +1,8 @@
-/* { dg-require-effective-target named_sections } */
-
 /* Don't assemble, as this section syntax may not be valid on all platforms
    (e.g., Darwin).  */
 /* { dg-do compile } */
+
+/* { dg-require-effective-target named_sections } */
 
 static __attribute__ ((__section__ (".init.data"))) char *message;
 static __attribute__ ((__section__ (".init.data"))) int (*actions[])(void) = {};



More information about the Gcc-patches mailing list