From patchwork Wed Jul 7 20:38:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [committed] Fix g++.dg/ext/altivec-{2,17}.C test cases From: Peter Bergner X-Patchwork-Id: 58167 Message-Id: <1278535088.2773.14.camel@otta> To: gcc-patches Date: Wed, 07 Jul 2010 15:38:08 -0500 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 * g++.dg/ext/altivec-2.C: Add -Wno-unused-but-set-variable to dg-options. * g++.dg/ext/altivec-17.C: Adjust error message. 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'" } }