From d90d76715ccdb610dafb5a3ba87495dcbf338330 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 2 Oct 2014 18:14:27 +0000 Subject: [PATCH] pr24049.c: Fix implicit declarations. * 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. From-SVN: r215814 --- gcc/testsuite/ChangeLog | 22 ++++++++++++++++++++ gcc/testsuite/gcc.dg/vect/pr24049.c | 2 ++ gcc/testsuite/gcc.dg/vect/pr26359.c | 1 + gcc/testsuite/gcc.dg/vect/pr28952.c | 2 ++ gcc/testsuite/gcc.dg/vect/pr31041.c | 1 + gcc/testsuite/gcc.dg/vect/pr32216.c | 1 + gcc/testsuite/gcc.dg/vect/pr32224.c | 1 + gcc/testsuite/gcc.dg/vect/pr32366.c | 1 + gcc/testsuite/gcc.dg/vect/pr33866.c | 2 +- gcc/testsuite/gcc.dg/vect/pr37730.c | 2 ++ gcc/testsuite/gcc.dg/vect/pr43430-2.c | 1 + gcc/testsuite/gcc.dg/vect/pr43842.c | 2 ++ gcc/testsuite/gcc.dg/vect/pr52870.c | 2 ++ gcc/testsuite/gcc.dg/vect/pr60092-2.c | 3 +++ gcc/testsuite/gcc.dg/vect/pr60092.c | 2 ++ gcc/testsuite/gcc.dg/vect/vect-1-big-array.c | 1 + gcc/testsuite/gcc.dg/vect/vect-1.c | 1 + gcc/testsuite/gcc.dg/vect/vect-93.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c | 1 + 19 files changed, 48 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d9aa1e5dd21..3359108de30 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,25 @@ +2014-10-02 Marek Polacek + + * 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. + 2014-10-02 Paolo Carlini PR c++/53025 diff --git a/gcc/testsuite/gcc.dg/vect/pr24049.c b/gcc/testsuite/gcc.dg/vect/pr24049.c index ee03fe3ea81..a7798bd2bd1 100644 --- a/gcc/testsuite/gcc.dg/vect/pr24049.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr26359.c b/gcc/testsuite/gcc.dg/vect/pr26359.c index 7a0cb0daca9..cf74388a596 100644 --- a/gcc/testsuite/gcc.dg/vect/pr26359.c +++ b/gcc/testsuite/gcc.dg/vect/pr26359.c @@ -4,6 +4,7 @@ int a[256], b[256], c[256]; +void foo () { int i; diff --git a/gcc/testsuite/gcc.dg/vect/pr28952.c b/gcc/testsuite/gcc.dg/vect/pr28952.c index 7305e607cfb..fb54aed695e 100644 --- a/gcc/testsuite/gcc.dg/vect/pr28952.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr31041.c b/gcc/testsuite/gcc.dg/vect/pr31041.c index 361b358b879..ad8d119f73f 100644 --- a/gcc/testsuite/gcc.dg/vect/pr31041.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr32216.c b/gcc/testsuite/gcc.dg/vect/pr32216.c index cf2744125ec..b15f7399c40 100644 --- a/gcc/testsuite/gcc.dg/vect/pr32216.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr32224.c b/gcc/testsuite/gcc.dg/vect/pr32224.c index 6f3a36b4b56..df9728fe202 100644 --- a/gcc/testsuite/gcc.dg/vect/pr32224.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr32366.c b/gcc/testsuite/gcc.dg/vect/pr32366.c index e83d579e946..7ea0c973dc6 100644 --- a/gcc/testsuite/gcc.dg/vect/pr32366.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr33866.c b/gcc/testsuite/gcc.dg/vect/pr33866.c index 8adb2e7edc1..c869226f718 100644 --- a/gcc/testsuite/gcc.dg/vect/pr33866.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr37730.c b/gcc/testsuite/gcc.dg/vect/pr37730.c index 876f5499ea8..1f03584564f 100644 --- a/gcc/testsuite/gcc.dg/vect/pr37730.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr43430-2.c b/gcc/testsuite/gcc.dg/vect/pr43430-2.c index 16f53dacc66..bc37f1141c9 100644 --- a/gcc/testsuite/gcc.dg/vect/pr43430-2.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr43842.c b/gcc/testsuite/gcc.dg/vect/pr43842.c index 593404ffbcb..6ebb00f9715 100644 --- a/gcc/testsuite/gcc.dg/vect/pr43842.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr52870.c b/gcc/testsuite/gcc.dg/vect/pr52870.c index 38518508bf6..7b185eef6bf 100644 --- a/gcc/testsuite/gcc.dg/vect/pr52870.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr60092-2.c b/gcc/testsuite/gcc.dg/vect/pr60092-2.c index 7d2eb6e80ea..6120d96b4de 100644 --- a/gcc/testsuite/gcc.dg/vect/pr60092-2.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/pr60092.c b/gcc/testsuite/gcc.dg/vect/pr60092.c index e03c625b489..a607ecaa246 100644 --- a/gcc/testsuite/gcc.dg/vect/pr60092.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/vect-1-big-array.c b/gcc/testsuite/gcc.dg/vect/vect-1-big-array.c index 4c0f532b468..a9ecf7f31cf 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-1-big-array.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/vect-1.c b/gcc/testsuite/gcc.dg/vect/vect-1.c index 04392ea78da..bc12ce54d24 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-1.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/vect-93.c b/gcc/testsuite/gcc.dg/vect/vect-93.c index 1065a6ec1c1..9b5bc7797e7 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-93.c +++ b/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 a/gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c b/gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c index 15a625f6a30..e5879e01f95 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c +++ b/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. -- 2.30.2