Fix tests for SPE failures

Joseph S. Myers joseph@codesourcery.com
Fri Nov 24 02:52:00 GMT 2006


This patch fixes two tests to avoid bogus failures on
powerpc*-*-*spe.  OK to commit?

g++.dg/eh/simd-2.C uses -w on some targets to avoid warnings about ABI
extensions for generic vectors.  It needs to do this for all PowerPC,
not just those satisfying powerpc_altivec_ok and so using -maltivec.

gcc.dg/debug/dwarf2/const-2.c uses -maltivec so needs to check
powerpc_altivec_ok.

2006-11-24  Joseph Myers  <joseph@codesourcery.com>

	* g++.dg/eh/simd-2.C: Use -O -w in general for PowerPC.
	* gcc.dg/debug/dwarf2/const-2.c: Use powerpc_altivec_ok.

Index: gcc/testsuite/g++.dg/eh/simd-2.C
===================================================================
--- gcc/testsuite/g++.dg/eh/simd-2.C	(revision 119135)
+++ gcc/testsuite/g++.dg/eh/simd-2.C	(working copy)
@@ -2,6 +2,7 @@
 // Contributed by Aldy Hernandez (aldy@quesejoda.com).
 // { dg-options "-O" }
 // { dg-options "-O -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
+// { dg-options "-O -w" { target powerpc*-*-* } }
 // { dg-options "-O -w -maltivec" { target { powerpc*-*-linux* && powerpc_altivec_ok } } }
 // { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } }
 // { dg-do run }
Index: gcc/testsuite/gcc.dg/debug/dwarf2/const-2.c
===================================================================
--- gcc/testsuite/gcc.dg/debug/dwarf2/const-2.c	(revision 119135)
+++ gcc/testsuite/gcc.dg/debug/dwarf2/const-2.c	(working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-do compile { target powerpc_altivec_ok } } */
 /* { dg-options "-O -gdwarf-2 -dA -maltivec" } */
 /* { dg-final { scan-assembler "DW_AT_const_value" } } */
 

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list