Fix 51702 testsuite failures
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Thu, 29 Dec 2011 17:45:11 +0000 (17:45 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Thu, 29 Dec 2011 17:45:11 +0000 (17:45 +0000)
From-SVN: r182726

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c
gcc/testsuite/gcc.dg/pr35442.c
gcc/testsuite/gcc.dg/scal-to-vec1.c
gcc/testsuite/gcc.dg/scal-to-vec2.c
gcc/testsuite/gcc.dg/torture/pr36891.c
gcc/testsuite/gcc.dg/vector-compare-1.c
gcc/testsuite/gcc.dg/vector-compare-2.c

index fb3daff3f19d3869427cf47c986cca367d93d8dd..c49c10012c3db28e5c5c4905ef3fa883ac0a4ea6 100644 (file)
@@ -1,3 +1,17 @@
+2011-12-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       PR testsuite/51702
+       * gcc.dg/scal-to-vec1.c: If 32-bit powerpc-linux, add the
+       -mabi=altivec option, which suppresses a warning message about
+       passing vectors by reference.  The extra warning causes some tests
+       to fail.
+       * gcc.dg/scal-to-vec2.c: Likewise.
+       * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: Likewise.
+       * gcc.dg/pr35442.c: Likewise.
+       * gcc.dg/vector-compare-1.c: Likewise.
+       * gcc.dg/vector-compare-2.c: Likewise.
+       * gcc.dg/torture/pr36891.c: Likewise.
+
 2012-12-29  Kai Tietz  <ktietz@redhat.com>
 
        * g++.dg/abi/bitfield3.C: Make sure test runs
index 29b1e98ba8efed19f22067bd6863d9d8f9b78fdd..42b393580a34e49dee7b915a63012270dae6897e 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -Wall" } */
+/* { dg-options "-O2 -Wall -mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
 
 typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
 
index 206853b9ef044348f89a825264f97300c57735cc..6534ba40419ff88289926182be04054789480d74 100644 (file)
@@ -1,5 +1,6 @@
 /* PR c/35442 */
 /* { dg-bogus "not supported by" "" { target *-*-* } 0 } */
+/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
 
 typedef char A __attribute__ ((vector_size (64)));
 typedef int B __attribute__ ((vector_size (64)));
index 503426dbb292692c16cd8bc328ac7b5c332cd3c5..0c1a5093315579a5f9bbc3f939a98df4d4edabbc 100644 (file)
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-Wno-long-long" } */
+/* { dg-options "-Wno-long-long -mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
+
 #define vector(elcount, type)  \
 __attribute__((vector_size((elcount)*sizeof(type)))) type
 
index 9ff8c059e567b32c3714905bacf5d21dba2e075d..1897b93e050d391efa3a6574204f78ad714ccad1 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */   
 /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
+/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
 
 /* Test for C_MAYBE_CONST are folded correctly when 
    expanding an expression to vector.  */
index 5a8e5c32e3eafcbd8585141bb8ad0f9fca9c7201..ab58e43b9cd5387e58e61dde8c911c093946cf3c 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-options "-ffast-math" } */
 /* { dg-options "-ffast-math -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 /* { dg-require-effective-target sse { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-options "-ffast-math -mabi=altivec" { target { { powerpc*-*-linux* } && ia32 } } } */
 
 #define __vector __attribute__((vector_size(16) ))
 __vector float f(void);
index b56823988106f80aa8cfb8257ac2e59493ceb9b9..f6c1b404b0cf23e562e0615174cdc888ec0264e2 100644 (file)
@@ -1,4 +1,6 @@
 /* { dg-do compile } */
+/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
+
 #define vector(elcount, type)  \
 __attribute__((vector_size((elcount)*sizeof(type)))) type
 
index f42986fdcb512e9bd5d09603493080d62c1201fc..8cbcf0787c4762199e233f5a0bf84f698c1fbe75 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */   
 /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
+/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
 
 /* Test if C_MAYBE_CONST are folded correctly when 
    creating VEC_COND_EXPR.  */