[PATCH, testsuite] Fix a few vmx tests

Pat Haugen pthaugen@linux.vnet.ibm.com
Wed Oct 8 22:15:00 GMT 2014


The following patch fixes recent failures with the tests after a 
dg-options string was added to them which prevented the default options 
from vmx.exp from being used.

Committed as obvious.


2014-10-08  Pat Haugen  <pthaugen@us.ibm.com>

gcc/testsuite:
         * gcc.dg/vmx/3c-01a.c: Add default options from vmx.exp.
         * gcc.dg/vmx/ops.c: Likewise.
         * gcc.dg/vmx/ops-long-1.c: Likewise.


Index: testsuite/gcc.dg/vmx/3c-01a.c
===================================================================
--- testsuite/gcc.dg/vmx/3c-01a.c    (revision 216016)
+++ testsuite/gcc.dg/vmx/3c-01a.c    (working copy)
@@ -1,5 +1,5 @@
  /* { dg-do compile } */
-/* { dg-options "-Wno-deprecated" } */
+/* { dg-options "-maltivec -mabi=altivec -std=gnu99 -mno-vsx 
-Wno-deprecated" } */
  #include <altivec.h>
  typedef const volatile unsigned int _1;
  typedef const  unsigned int _2;
Index: testsuite/gcc.dg/vmx/ops.c
===================================================================
--- testsuite/gcc.dg/vmx/ops.c    (revision 216016)
+++ testsuite/gcc.dg/vmx/ops.c    (working copy)
@@ -1,5 +1,5 @@
  /* { dg-do compile } */
-/* { dg-options "-Wno-deprecated" } */
+/* { dg-options "-maltivec -mabi=altivec -std=gnu99 -mno-vsx 
-Wno-deprecated" } */
  #include <altivec.h>
  #include <stdlib.h>
  extern char * *var_char_ptr;
Index: testsuite/gcc.dg/vmx/ops-long-1.c
===================================================================
--- testsuite/gcc.dg/vmx/ops-long-1.c    (revision 216016)
+++ testsuite/gcc.dg/vmx/ops-long-1.c    (working copy)
@@ -1,5 +1,5 @@
  /* { dg-do compile } */
-/* { dg-options "-Wno-deprecated" } */
+/* { dg-options "-maltivec -mabi=altivec -std=gnu99 -mno-vsx 
-Wno-deprecated" } */

  /* Checks from the original ops.c that pass pointers to long or
     unsigned long for operations that support that in released versions



More information about the Gcc-patches mailing list