This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] fix g++.dg/ext/altivec-15.C for PR39776
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 30 Apr 2009 10:55:41 -0700
- Subject: [testsuite] fix g++.dg/ext/altivec-15.C for PR39776
- Reply-to: janis187 at us dot ibm dot com
Test g++.dg/ext/altivec-15.C was added to detect that an internal
compiler error doesn't occur, and it has dg-error directives for errors
that were reported at the time the test was added. Since then the fix
for PR c++/28301 was added which causes the last part of the test to be
skipped. This patch removes the dg-error directives in the block that
is now skipped.
Tested on powerpc64-unknown-linux-gnu with -m32 and -m64, checked in
on trunk and the 4.4 branch.
2009-04-30 Janis Johnson <janis187@us.ibm.com>
PR testsuite/39776
* g++.dg/ext/altivec-15.C: Remove dg-error for messages that are
no longer issued.
Index: gcc/testsuite/g++.dg/ext/altivec-15.C
===================================================================
--- gcc/testsuite/g++.dg/ext/altivec-15.C (revision 147009)
+++ gcc/testsuite/g++.dg/ext/altivec-15.C (working copy)
@@ -2,12 +2,15 @@
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* This test was added for an internal compiler error. The number and
+ content of error messages is irrelevant. */
+
struct SubData
{
inline const Float Clamp(Float f, Float f0, Float f1) // { dg-error "" }
}
inline const void SinCos(Float angle, Float& sine, Float& cosine) // { dg-error "" }
{
- C0 = __builtin_vec_splat(_simdCosEstCoefficients, 0); // { dg-error "" }
- C1 = __builtin_vec_splat(_simdCosEstCoefficients, 1); // { dg-error "" }
+ C0 = __builtin_vec_splat(_simdCosEstCoefficients, 0);
+ C1 = __builtin_vec_splat(_simdCosEstCoefficients, 1);