This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] (committed) fix gcc.target/powerpc/ppc64-abi-3.c


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;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]