* [testsuite] (committed) fix gcc.target/powerpc/ppc64-abi-3.c
@ 2008-10-02 17:57 Janis Johnson
0 siblings, 0 replies; only message in thread
From: Janis Johnson @ 2008-10-02 17:57 UTC (permalink / raw)
To: gcc-patches
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-02 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-02 17:57 [testsuite] (committed) fix gcc.target/powerpc/ppc64-abi-3.c Janis Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).