This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] (checked in) fix gcc.dg/altivec-21.c
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 19 May 2005 16:16:49 -0700
- Subject: [testsuite] (checked in) fix gcc.dg/altivec-21.c
This test has dg-error directives in conditionally-compiled code, but
the directives are always processed. Fix that. I'm checking it in on
mainline.
2005-05-19 Janis Johnson <janis187@us.ibm.com>
* gcc.dg/altivec-21.c: Use dg-error only for ilp32.
Index: gcc/testsuite/gcc.dg/altivec-21.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/altivec-21.c,v
retrieving revision 1.1
diff -u -p -r1.1 altivec-21.c
--- gcc/testsuite/gcc.dg/altivec-21.c 8 Mar 2005 21:01:47 -0000 1.1
+++ gcc/testsuite/gcc.dg/altivec-21.c 19 May 2005 19:49:53 -0000
@@ -10,8 +10,8 @@ typedef void (*pvecfunc) ();
void foo(pvecfunc pvf) {
vector int v = (vector int){1, 2, 3, 4};
#ifndef __LP64__
- preansi (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" } */
- (*pvf) (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" } */
+ preansi (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" "" { target ilp32 } } */
+ (*pvf) (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" "" { target ilp32 } } */
#endif /* __LP64__ */
}