diff mbox

Fix undefined behavior in vect testcases

Message ID alpine.LSU.2.11.1512021243230.4884@t29.fhfr.qr
State New
Headers show

Commit Message

Richard Biener Dec. 2, 2015, 11:47 a.m. UTC
Spotted by disabling init-regs.c (see PR61810).

Bah, parts of our testsuite should be -Wall clean, really.

Tested on x86_64-unknown-linux-gnu, applied.

Richard.

2015-12-02  Richard Biener  <rguenther@suse.de>

	* gcc.dg/vect/vect-strided-a-u8-i8-gap7-big-array.c: Fix uninitialized
	y guarding a call to abort ().
	* gcc.dg/vect/vect-strided-a-u8-i8-gap7.c: Likewise.
	* gcc.dg/vect/vect-strided-u8-i8-gap7-big-array.c: Likewise.
diff mbox

Patch

Index: gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7-big-array.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7-big-array.c	(revision 231163)
+++ gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7-big-array.c	(working copy)
@@ -26,7 +26,7 @@  main1 ()
   s *ptr = arr;
   s check_res[N];
   s res[N];
-  unsigned char u, t, s, x, y, z, w;
+  unsigned char u, t, s, x, z, w;
 
   for (i = 0; i < N; i++)
     {
Index: gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c	(revision 231163)
+++ gcc/testsuite/gcc.dg/vect/vect-strided-a-u8-i8-gap7.c	(working copy)
@@ -25,7 +25,7 @@  main1 ()
   s arr[N];
   s *ptr = arr;
   s res[N];
-  unsigned char u, t, s, x, y, z, w;
+  unsigned char u, t, s, x, z, w;
 
   for (i = 0; i < N; i++)
     {
Index: gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap7-big-array.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap7-big-array.c	(revision 231163)
+++ gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap7-big-array.c	(working copy)
@@ -26,7 +26,7 @@  main1 (s *arr)
   int i;
   s *ptr = arr;
   s res[N];
-  unsigned char u, t, s, x, y, z, w;
+  unsigned char u, t, s, x, z, w;
 
   for (i = 0; i < N; i++)
     {
@@ -65,7 +65,7 @@  int main (void)
 {
   int i;
   s arr[N];
-  unsigned char u, t, s, x, y, z, w;
+  unsigned char u, t, s, x, z, w;
 
   check_vect ();