This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed: fix gcc.dg/asm-a.c dg-require-effective-target order
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Janis Johnson <janis187 at us dot ibm dot com>
- Date: Wed, 19 Jan 2005 16:16:27 -0500 (EST)
- Subject: Committed: fix gcc.dg/asm-a.c dg-require-effective-target order
Spotted because this test failed for mmix-knuth-mmixware, while gcc.log
clearly indicated that the ilp32 test was executed and worked. Apparently
dg-require-effective-target command must be specified *after* the dg-do
target. Committed as obvious.
I don't see it as being documented as a requirement, though.
Perhaps the order dependence is a bug?
* gcc.dg/asm-a.c: Move dg-require-effective-target to
after dg-do.
Index: asm-a.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/asm-a.c,v
retrieving revision 1.2
diff -p -c -u -p -r1.2 asm-a.c
cvs diff: conflicting specifications of output style
--- asm-a.c 18 Jan 2005 17:53:23 -0000 1.2
+++ asm-a.c 19 Jan 2005 20:59:52 -0000
@@ -1,6 +1,6 @@
-/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2" } */
/* { dg-do compile } */
+/* { dg-require-effective-target ilp32 } */
/* The problem was we were not striping the long cast here.
Note this really should be invalid code but not for the
brgds, H-P