[testsuite] fix gcc.target/powerpc/pr47197.c
Janis Johnson
janis_johnson@mentor.com
Mon Jul 8 19:44:00 GMT 2013
Test gcc.target/powerpc/pr47197.c passes "-maltivec" without first
checking that the option is allowed on the target, which is not the case
for powerpc-eabispe. This obvious patch fixes the problem by requiring
powerpc_altivec_ok; checked in on mainline and the 4.8 branch.
Janis
-------------- next part --------------
2013-07-08 Janis Johnson <janisjo@codesourcery.com>
* gcc.target/powerpc/pr47197.c: Require powerpc_altivec_ok.
Index: gcc.target/powerpc/pr47197.c
===================================================================
--- gcc.target/powerpc/pr47197.c (revision 200621)
+++ gcc.target/powerpc/pr47197.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* Compile-only test to ensure that expressions can be passed to
More information about the Gcc-patches
mailing list