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]

[PATCH] gcc.dg/vect/ cleanup


This patch is a cleanup of tests in gcc.dg/vect/ directory.
See https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02656.html for more info.

Tested on x86_64-linux: vanilla results == results with this patch ==
results with this patch and gnu11 as a default.

Ok?

2014-10-02  Marek Polacek  <polacek@redhat.com>

	* gcc.dg/vect/pr24049.c: Fix implicit declarations.
	* gcc.dg/vect/pr37730.c: Likewise.
	* gcc.dg/vect/pr52870.c: Likewise.
	* gcc.dg/vect/pr60092-2.c: Likewise.
	* gcc.dg/vect/pr60092.c: Likewise.
	* gcc.dg/vect/vect-reduc-sad.c: Likewise.
	* gcc.dg/vect/pr26359.c: Fix defaulting to int.
	* gcc.dg/vect/pr31041.c: Likewise.
	* gcc.dg/vect/pr32216.c: Likewise.
	* gcc.dg/vect/pr32224.c: Likewise.
	* gcc.dg/vect/pr32366.c: Likewise.
	* gcc.dg/vect/pr33866.c: Likewise.
	* gcc.dg/vect/pr43430-2.c: Likewise.
	* gcc.dg/vect/pr43842.c: Likewise.
	* gcc.dg/vect/vect-1.c: Likewise.
	* gcc.dg/vect/vect-1-big-array.c: Likewise.
	* gcc.dg/vect/vect-93.c: Likewise.
	* gcc.dg/vect/pr28952.c: Fix implicit declarations and
	defaulting to int.

diff --git gcc/gcc/testsuite/gcc.dg/vect/pr24049.c gcc/gcc/testsuite/gcc.dg/vect/pr24049.c
index ee03fe3..a7798bd 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr24049.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr24049.c
@@ -1,6 +1,8 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -ftree-vectorize --param ggc-min-heapsize=0 --param ggc-min-expand=0" } */
 
+void unscrunch (unsigned char *, int *);
+
 int DES_CBCUpdate(unsigned char * output, int len)
 {
   int work[2];
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr26359.c gcc/gcc/testsuite/gcc.dg/vect/pr26359.c
index 7a0cb0d..cf74388 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr26359.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr26359.c
@@ -4,6 +4,7 @@
 
 int a[256], b[256], c[256];
 
+void
 foo () {
   int i;
 
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr28952.c gcc/gcc/testsuite/gcc.dg/vect/pr28952.c
index 7305e60..fb54aed 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr28952.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr28952.c
@@ -15,6 +15,8 @@ struct packet_spaceship_info
 {
   char structure[32 + 1];
 };
+void lsend_packet_spaceship_info (struct packet_spaceship_info *);
+void
 send_spaceship_info (void)
 {
   int j;
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr31041.c gcc/gcc/testsuite/gcc.dg/vect/pr31041.c
index 361b358..ad8d119 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr31041.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr31041.c
@@ -9,6 +9,7 @@ struct UNewTrie
   int index[(0x110000 >> 1)];
 };
 typedef struct UNewTrie UNewTrie;
+void
 utrie_open_3_4 ()
 {
   UNewTrie *trie;
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr32216.c gcc/gcc/testsuite/gcc.dg/vect/pr32216.c
index cf27441..b15f739 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr32216.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr32216.c
@@ -3,6 +3,7 @@
 
 unsigned int wlookup2[203];
 
+void
 SetSoundVariables (int x)
 {
   for (x = 1; x < 32; x++)
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr32224.c gcc/gcc/testsuite/gcc.dg/vect/pr32224.c
index 6f3a36b..df9728f 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr32224.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr32224.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 typedef unsigned long int *mp_ptr;
 typedef const unsigned long int *mp_srcptr;
+void
 gmpz_export (void *data)
 {
   mp_srcptr zp;
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr32366.c gcc/gcc/testsuite/gcc.dg/vect/pr32366.c
index e83d579..7ea0c97 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr32366.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr32366.c
@@ -3,6 +3,7 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_float } */
 
+void
 stream_test (void)
 {
   static float input[20];
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr33866.c gcc/gcc/testsuite/gcc.dg/vect/pr33866.c
index 8adb2e7..c869226 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr33866.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr33866.c
@@ -8,7 +8,7 @@ typedef struct
 }
 fill_iter_info;
 
-extern H5Diterate (fill_iter_info *);
+extern int H5Diterate (fill_iter_info *);
 
 void test_select_fill_hyper_simple (long *offset)
 {
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr37730.c gcc/gcc/testsuite/gcc.dg/vect/pr37730.c
index 876f549..1f03584 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr37730.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr37730.c
@@ -1,6 +1,8 @@
 /* PR middle-end/37730 */
 /* { dg-do compile } */
 
+void sdp_seq_alloc (void *);
+
 void
 add_opush (void)
 {
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr43430-2.c gcc/gcc/testsuite/gcc.dg/vect/pr43430-2.c
index 16f53da..bc37f11 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr43430-2.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr43430-2.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
 typedef unsigned char uint8_t;
+int
 vsad16_c (void *c, uint8_t * s1, uint8_t * s2, int stride, int h)
 {
   int score = 0;
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr43842.c gcc/gcc/testsuite/gcc.dg/vect/pr43842.c
index 593404f..6ebb00f 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr43842.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr43842.c
@@ -30,6 +30,7 @@ int16_t g_4;
 int8_t g_4_8;
 uint32_t g_9[1];
 uint32_t g_9_8[2];
+void
 int161 (void)
 {
   int32_t l_2;
@@ -38,6 +39,7 @@ int161 (void)
     g_9[0] ^= safe_rshift_func_int16_t_s_u (g_4, 1);
 }
 
+int
 int81 (void)
 {
   int32_t l_2;
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr52870.c gcc/gcc/testsuite/gcc.dg/vect/pr52870.c
index 3851850..7b185ee 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr52870.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr52870.c
@@ -1,6 +1,8 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -ftree-vectorize" } */
 
+void foo (unsigned long int);
+
 long
 test (int *x)
 {
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr60092-2.c gcc/gcc/testsuite/gcc.dg/vect/pr60092-2.c
index 7d2eb6e..6120d96 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr60092-2.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr60092-2.c
@@ -1,6 +1,9 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
 
+int posix_memalign(void **memptr, __SIZE_TYPE__ alignment, __SIZE_TYPE__ size);
+void bar (int *);
+
 int *foo (int n)
 {
   int *p;
diff --git gcc/gcc/testsuite/gcc.dg/vect/pr60092.c gcc/gcc/testsuite/gcc.dg/vect/pr60092.c
index e03c625..a607eca 100644
--- gcc/gcc/testsuite/gcc.dg/vect/pr60092.c
+++ gcc/gcc/testsuite/gcc.dg/vect/pr60092.c
@@ -1,6 +1,8 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
 
+void bar (int *);
+
 int *foo (int n)
 {
   int *p = __builtin_aligned_alloc (256, n * sizeof (int));
diff --git gcc/gcc/testsuite/gcc.dg/vect/vect-1-big-array.c gcc/gcc/testsuite/gcc.dg/vect/vect-1-big-array.c
index 4c0f532..a9ecf7f 100644
--- gcc/gcc/testsuite/gcc.dg/vect/vect-1-big-array.c
+++ gcc/gcc/testsuite/gcc.dg/vect/vect-1-big-array.c
@@ -10,6 +10,7 @@ void sbar (short *);
 
 /* multiple loops */
 
+void
 foo (int n)
 {
   float a[N+1];
diff --git gcc/gcc/testsuite/gcc.dg/vect/vect-1.c gcc/gcc/testsuite/gcc.dg/vect/vect-1.c
index 04392ea..bc12ce5 100644
--- gcc/gcc/testsuite/gcc.dg/vect/vect-1.c
+++ gcc/gcc/testsuite/gcc.dg/vect/vect-1.c
@@ -10,6 +10,7 @@ void sbar (short *);
 
 /* multiple loops */
 
+void
 foo (int n)
 {
   float a[N+1];
diff --git gcc/gcc/testsuite/gcc.dg/vect/vect-93.c gcc/gcc/testsuite/gcc.dg/vect/vect-93.c
index 1065a6e..9b5bc77 100644
--- gcc/gcc/testsuite/gcc.dg/vect/vect-93.c
+++ gcc/gcc/testsuite/gcc.dg/vect/vect-93.c
@@ -6,7 +6,7 @@
 #define N 3001
 
 
-__attribute__ ((noinline))
+__attribute__ ((noinline)) int
 main1 (float *pa)
 {
   int i;
diff --git gcc/gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c gcc/gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c
index 15a625f..e5879e0 100644
--- gcc/gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c
+++ gcc/gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c
@@ -8,6 +8,7 @@
 
 unsigned char X[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
 unsigned char Y[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
+int abs (int);
 
 /* Sum of absolute differences between arrays of unsigned char types.
    Detected as a sad pattern.

	Marek


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