Patchwork [committed] Fix g++.dg/ext/altivec-{2,17}.C test cases

login
register
mail settings
Submitter Peter Bergner
Date July 7, 2010, 8:38 p.m.
Message ID <1278535088.2773.14.camel@otta>
Download mbox | patch
Permalink /patch/58167/
State New
Headers show

Comments

Peter Bergner - July 7, 2010, 8:38 p.m.
I just committed as obvious the following patch which is required with trunk
due to the extra warning message we now produce and the different error
message.

Peter


2010-07-07  Peter Bergner  <bergner@vnet.ibm.com>

	* g++.dg/ext/altivec-2.C: Add -Wno-unused-but-set-variable to
	dg-options.
	* g++.dg/ext/altivec-17.C: Adjust error message.

Patch

Index: gcc/testsuite/g++.dg/ext/altivec-2.C
===================================================================
--- gcc/testsuite/g++.dg/ext/altivec-2.C	(revision 161930)
+++ gcc/testsuite/g++.dg/ext/altivec-2.C	(revision 161931)
@@ -1,6 +1,6 @@ 
 /* { dg-do compile { target powerpc*-*-* } } */
 /* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-options "-maltivec -Wall" } */
+/* { dg-options "-maltivec -Wall -Wno-unused-but-set-variable" } */
 
 /* This test checks if AltiVec builtins accept const-qualified
    arguments.  */
Index: gcc/testsuite/g++.dg/ext/altivec-17.C
===================================================================
--- gcc/testsuite/g++.dg/ext/altivec-17.C	(revision 161930)
+++ gcc/testsuite/g++.dg/ext/altivec-17.C	(revision 161931)
@@ -12,5 +12,5 @@  typedef vector__ bool__ int bool_simd_ty
 
 void Foo (bool_simd_type const &a)
 {
-  simd_type const &v = a; // { dg-error "'const __vector.4. unsigned int&' from expression of type 'const __vector.4. __bool int'" }
+  simd_type const &v = a; // { dg-error "'const simd_type&' from expression of type 'const bool_simd_type'" }
 }