This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] (committed) fix gcc.target/powerpc/ppc64-abi-3.c
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 02 Oct 2008 10:54:58 -0700
- Subject: [testsuite] (committed) fix gcc.target/powerpc/ppc64-abi-3.c
- Reply-to: janis187 at us dot ibm dot com
Warnings about uninitialized variables improved, so initialize some
variables in a test. Tested on powepc64-linux, checked in on trunk.
2008-10-02 Janis Johnson <janis187@us.ibm.com>
* gcc.target/powerpc/ppc64-abi-3.c: Initialize variables to suppress
warning.
Index: gcc/testsuite/gcc.target/powerpc/ppc64-abi-3.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/ppc64-abi-3.c (revision 140816)
+++ gcc/testsuite/gcc.target/powerpc/ppc64-abi-3.c (working copy)
@@ -21,8 +21,8 @@ g(v2si v)
int
main()
{
- v4si v;
- v2si w;
+ v4si v = { 1, 2, 3, 4 };
+ v2si w = { 5, 6 };
v = f (v); /* { dg-error "altivec instructions are disabled" "PR18631" { xfail *-*-* } } */
w = g (w);
return 0;