From 66346a05302662e3ef5f92a400aaf7ebe21b80b8 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 16 Oct 2014 11:49:06 +0000 Subject: [PATCH] id-1.c: Fix defaulting to int. * gcc.dg/graphite/id-1.c: Fix defaulting to int. * gcc.dg/graphite/id-2.c: Likewise. * gcc.dg/graphite/id-4.c: Likewise. * gcc.dg/graphite/id-8.c: Likewise. * gcc.dg/graphite/id-pr45230-1.c: Likewise. * gcc.dg/graphite/id-pr45230.c: Likewise. * gcc.dg/graphite/id-pr45231.c: Likewise. * gcc.dg/graphite/pr38073.c: Likewise. * gcc.dg/graphite/pr38125.c: Likewise. * gcc.dg/graphite/pr38409.c: Likewise. * gcc.dg/graphite/pr38413.c: Likewise. * gcc.dg/graphite/pr38510.c: Likewise. * gcc.dg/graphite/pr38786.c: Likewise. * gcc.dg/graphite/pr39260.c: Likewise. * gcc.dg/graphite/scop-19.c: Likewise. * gcc.dg/graphite/id-13.c: Fix implicit declarations. * gcc.dg/graphite/id-17.c: Likewise. * gcc.dg/graphite/id-23.c: Likewise. * gcc.dg/graphite/id-26.c: Likewise. * gcc.dg/graphite/id-pr43464-1.c: Likewise. * gcc.dg/graphite/pr37485.c: Likewise. * gcc.dg/graphite/pr38500.c: Likewise. * gcc.dg/graphite/pr42284.c: Likewise. * gcc.dg/graphite/pr42914.c: Likewise. * gcc.dg/graphite/pr46404-1.c: Likewise. * gcc.dg/graphite/pr60979.c: Likewise. * gcc.dg/graphite/id-pr43464.c: Fix implicit declarations and defaulting to int. From-SVN: r216312 --- gcc/testsuite/ChangeLog | 31 ++++++++++++++++++++ gcc/testsuite/gcc.dg/graphite/id-1.c | 2 ++ gcc/testsuite/gcc.dg/graphite/id-13.c | 2 ++ gcc/testsuite/gcc.dg/graphite/id-17.c | 1 + gcc/testsuite/gcc.dg/graphite/id-2.c | 1 + gcc/testsuite/gcc.dg/graphite/id-23.c | 1 + gcc/testsuite/gcc.dg/graphite/id-26.c | 1 + gcc/testsuite/gcc.dg/graphite/id-4.c | 3 +- gcc/testsuite/gcc.dg/graphite/id-8.c | 1 + gcc/testsuite/gcc.dg/graphite/id-pr43464-1.c | 1 + gcc/testsuite/gcc.dg/graphite/id-pr43464.c | 6 ++++ gcc/testsuite/gcc.dg/graphite/id-pr45230-1.c | 1 + gcc/testsuite/gcc.dg/graphite/id-pr45230.c | 1 + gcc/testsuite/gcc.dg/graphite/id-pr45231.c | 2 +- gcc/testsuite/gcc.dg/graphite/pr37485.c | 2 ++ gcc/testsuite/gcc.dg/graphite/pr38073.c | 1 + gcc/testsuite/gcc.dg/graphite/pr38125.c | 1 + gcc/testsuite/gcc.dg/graphite/pr38409.c | 1 + gcc/testsuite/gcc.dg/graphite/pr38413.c | 1 + gcc/testsuite/gcc.dg/graphite/pr38500.c | 1 + gcc/testsuite/gcc.dg/graphite/pr38510.c | 1 + gcc/testsuite/gcc.dg/graphite/pr38786.c | 1 + gcc/testsuite/gcc.dg/graphite/pr39260.c | 1 + gcc/testsuite/gcc.dg/graphite/pr42284.c | 2 ++ gcc/testsuite/gcc.dg/graphite/pr42914.c | 2 ++ gcc/testsuite/gcc.dg/graphite/pr46404-1.c | 2 ++ gcc/testsuite/gcc.dg/graphite/pr60979.c | 1 + gcc/testsuite/gcc.dg/graphite/scop-19.c | 2 ++ 28 files changed, 71 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9571e6b03eb..50ba4602088 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,34 @@ +2014-10-16 Marek Polacek + + * gcc.dg/graphite/id-1.c: Fix defaulting to int. + * gcc.dg/graphite/id-2.c: Likewise. + * gcc.dg/graphite/id-4.c: Likewise. + * gcc.dg/graphite/id-8.c: Likewise. + * gcc.dg/graphite/id-pr45230-1.c: Likewise. + * gcc.dg/graphite/id-pr45230.c: Likewise. + * gcc.dg/graphite/id-pr45231.c: Likewise. + * gcc.dg/graphite/pr38073.c: Likewise. + * gcc.dg/graphite/pr38125.c: Likewise. + * gcc.dg/graphite/pr38409.c: Likewise. + * gcc.dg/graphite/pr38413.c: Likewise. + * gcc.dg/graphite/pr38510.c: Likewise. + * gcc.dg/graphite/pr38786.c: Likewise. + * gcc.dg/graphite/pr39260.c: Likewise. + * gcc.dg/graphite/scop-19.c: Likewise. + * gcc.dg/graphite/id-13.c: Fix implicit declarations. + * gcc.dg/graphite/id-17.c: Likewise. + * gcc.dg/graphite/id-23.c: Likewise. + * gcc.dg/graphite/id-26.c: Likewise. + * gcc.dg/graphite/id-pr43464-1.c: Likewise. + * gcc.dg/graphite/pr37485.c: Likewise. + * gcc.dg/graphite/pr38500.c: Likewise. + * gcc.dg/graphite/pr42284.c: Likewise. + * gcc.dg/graphite/pr42914.c: Likewise. + * gcc.dg/graphite/pr46404-1.c: Likewise. + * gcc.dg/graphite/pr60979.c: Likewise. + * gcc.dg/graphite/id-pr43464.c: Fix implicit declarations and + defaulting to int. + 2014-10-16 Martin Liska Jan Hubicka diff --git a/gcc/testsuite/gcc.dg/graphite/id-1.c b/gcc/testsuite/gcc.dg/graphite/id-1.c index 70b477a07b1..1085c4a650e 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-1.c +++ b/gcc/testsuite/gcc.dg/graphite/id-1.c @@ -1,5 +1,6 @@ typedef int *lambda_vector; typedef lambda_vector *lambda_matrix; +void lambda_vector_add_mc (lambda_vector vec1, int const1, lambda_vector vec2, int const2, lambda_vector vec3, int size) @@ -8,6 +9,7 @@ lambda_vector_add_mc (lambda_vector vec1, int const1, for (i = 0; i < size; i++) vec3[i] = const1 * vec1[i] + const2 * vec2[i]; } +void lambda_matrix_add_mc (lambda_matrix mat1, int const1, lambda_matrix mat2, int const2, lambda_matrix mat3, int m, int n) diff --git a/gcc/testsuite/gcc.dg/graphite/id-13.c b/gcc/testsuite/gcc.dg/graphite/id-13.c index e921cd4e9d6..0dfafb888d0 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-13.c +++ b/gcc/testsuite/gcc.dg/graphite/id-13.c @@ -1,3 +1,5 @@ +void bar (int); + void foo (int N, int k, int *fb) { diff --git a/gcc/testsuite/gcc.dg/graphite/id-17.c b/gcc/testsuite/gcc.dg/graphite/id-17.c index c93c211e459..68a7bb5223f 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-17.c +++ b/gcc/testsuite/gcc.dg/graphite/id-17.c @@ -11,6 +11,7 @@ typedef struct } ImageParameters; ImageParameters *img; +void error (const char *); void GenerateSequenceParameterSet(seq_parameter_set_rbsp_t *sps) { diff --git a/gcc/testsuite/gcc.dg/graphite/id-2.c b/gcc/testsuite/gcc.dg/graphite/id-2.c index c11f6a283a8..c416822a7f5 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-2.c +++ b/gcc/testsuite/gcc.dg/graphite/id-2.c @@ -1,4 +1,5 @@ typedef _Complex float GFC_COMPLEX_4; +void matmul_c4 () { int x, n, count; diff --git a/gcc/testsuite/gcc.dg/graphite/id-23.c b/gcc/testsuite/gcc.dg/graphite/id-23.c index 0f8a1f32f6e..3b62d917f63 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-23.c +++ b/gcc/testsuite/gcc.dg/graphite/id-23.c @@ -1,3 +1,4 @@ +void SubMtx_blockDiagonalInfo (int **); double *ZV_entries (void); void SubMtx_fillRowZV (int irow) { diff --git a/gcc/testsuite/gcc.dg/graphite/id-26.c b/gcc/testsuite/gcc.dg/graphite/id-26.c index 507d1590fad..e6f64e56c8c 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-26.c +++ b/gcc/testsuite/gcc.dg/graphite/id-26.c @@ -1,3 +1,4 @@ +int abs (int); int find_sad_16x16(int *intra_mode) { int current_intra_sad_2,best_intra_sad2; diff --git a/gcc/testsuite/gcc.dg/graphite/id-4.c b/gcc/testsuite/gcc.dg/graphite/id-4.c index 38f6738d706..71d4b17efee 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-4.c +++ b/gcc/testsuite/gcc.dg/graphite/id-4.c @@ -1,4 +1,5 @@ -extern a[]; +extern int a[]; +void g () { int i, b; diff --git a/gcc/testsuite/gcc.dg/graphite/id-8.c b/gcc/testsuite/gcc.dg/graphite/id-8.c index 1a278c16426..25405cfa008 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-8.c +++ b/gcc/testsuite/gcc.dg/graphite/id-8.c @@ -1,4 +1,5 @@ int blah; +int foo() { int i; diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr43464-1.c b/gcc/testsuite/gcc.dg/graphite/id-pr43464-1.c index d5a8359656d..8e6ac209e7c 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-pr43464-1.c +++ b/gcc/testsuite/gcc.dg/graphite/id-pr43464-1.c @@ -3,6 +3,7 @@ typedef struct regnode char flags; } regnode; extern const unsigned char A[]; +int bar (regnode *); char *foo (regnode *c, char *s, int norun) { diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr43464.c b/gcc/testsuite/gcc.dg/graphite/id-pr43464.c index a8e67dc2bf5..b9cf7c89d87 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-pr43464.c +++ b/gcc/testsuite/gcc.dg/graphite/id-pr43464.c @@ -13,6 +13,9 @@ typedef struct cop extern const unsigned char PL_utf8skip[]; extern char PL_dowarn; extern COP *volatile PL_curcop; +int S_reginclass (regnode *); +int S_regtry (regexp *, char *); +unsigned long Perl_utf8n_to_uvuni (char *, int, long unsigned int *, int); char * S_find_byclass (regexp * prog, regnode * c, char *s, char *strend, char *startpos, int norun) @@ -49,15 +52,18 @@ S_find_byclass (regexp * prog, regnode * c, char *s, char *strend, got_it: return s; } +void Perl_re_intuit_start (regexp * prog) { S_find_byclass (prog, 0, 0, 0, 0, 1); } +void Perl_regexec_flags (register regexp * prog, register char *strend) { S_find_byclass (prog, 0, 0, strend, 0, 0); } +int S_regtry (regexp * prog, char *startpos) { } diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr45230-1.c b/gcc/testsuite/gcc.dg/graphite/id-pr45230-1.c index ba14fe5572d..427e9a61f03 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-pr45230-1.c +++ b/gcc/testsuite/gcc.dg/graphite/id-pr45230-1.c @@ -41,6 +41,7 @@ test (const unsigned char *s1, const unsigned char *s2, size_t len, int expected __builtin_abort (); } +int main () { size_t off1, off2, len, i; diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr45230.c b/gcc/testsuite/gcc.dg/graphite/id-pr45230.c index 80f67697f13..8ebf8046e50 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-pr45230.c +++ b/gcc/testsuite/gcc.dg/graphite/id-pr45230.c @@ -1,4 +1,5 @@ unsigned char buf[10]; +int main () { unsigned off1, len, i; diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr45231.c b/gcc/testsuite/gcc.dg/graphite/id-pr45231.c index 01e9a672e88..d976e3207f6 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-pr45231.c +++ b/gcc/testsuite/gcc.dg/graphite/id-pr45231.c @@ -1,5 +1,5 @@ void -f (n, ppt, xrot) +f (int n, int ppt, int xrot) { int tileWidth; int nlwSrc; diff --git a/gcc/testsuite/gcc.dg/graphite/pr37485.c b/gcc/testsuite/gcc.dg/graphite/pr37485.c index 7432aaa2ac6..09a2b66cc15 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr37485.c +++ b/gcc/testsuite/gcc.dg/graphite/pr37485.c @@ -3,6 +3,8 @@ typedef unsigned char UChar; typedef int Int32; typedef unsigned int UInt32; +void VPrintf0(const char *); +void AssertH (int, int); void fallbackSort ( UInt32* fmap, UInt32* eclass, diff --git a/gcc/testsuite/gcc.dg/graphite/pr38073.c b/gcc/testsuite/gcc.dg/graphite/pr38073.c index 9c48d8d095f..a68b9e2aca6 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr38073.c +++ b/gcc/testsuite/gcc.dg/graphite/pr38073.c @@ -1,5 +1,6 @@ /* { dg-options "-O3 -fgraphite-identity" } */ +int test_seg(int a, int b) { int i,r=1; diff --git a/gcc/testsuite/gcc.dg/graphite/pr38125.c b/gcc/testsuite/gcc.dg/graphite/pr38125.c index 780e6f643e6..3075c19115f 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr38125.c +++ b/gcc/testsuite/gcc.dg/graphite/pr38125.c @@ -22,6 +22,7 @@ struct magic { TEST_SV* mg_obj; }; extern TEST_SV PL_sv_undef; +void Perl_av_fill( register TEST_AV *av, int fill) { TEST_MAGIC *mg; diff --git a/gcc/testsuite/gcc.dg/graphite/pr38409.c b/gcc/testsuite/gcc.dg/graphite/pr38409.c index 5cdb4725dbf..d308b5eb019 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr38409.c +++ b/gcc/testsuite/gcc.dg/graphite/pr38409.c @@ -6,6 +6,7 @@ struct test int type ; int symflag ; }; +int Chv_copyEntriesToVector ( input *chv,double *dvec) { double *entries ; diff --git a/gcc/testsuite/gcc.dg/graphite/pr38413.c b/gcc/testsuite/gcc.dg/graphite/pr38413.c index 6c2b23a8829..0ecccc7df60 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr38413.c +++ b/gcc/testsuite/gcc.dg/graphite/pr38413.c @@ -3,6 +3,7 @@ static int qsz; void specqsort(base, n, size, compar) + int n, size, compar; char *base; { register char c, *i, *j, *lo, *hi; diff --git a/gcc/testsuite/gcc.dg/graphite/pr38500.c b/gcc/testsuite/gcc.dg/graphite/pr38500.c index f5292d173c1..f6b421549c6 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr38500.c +++ b/gcc/testsuite/gcc.dg/graphite/pr38500.c @@ -4,6 +4,7 @@ typedef unsigned char U8; extern char test1; char *Perl_screaminstr (int, int, int); +int Perl_utf8_distance (U8 *, U8 *); void Perl_re_intuit_start( int minlen, char *strend, unsigned int flags, int i) diff --git a/gcc/testsuite/gcc.dg/graphite/pr38510.c b/gcc/testsuite/gcc.dg/graphite/pr38510.c index 07ddb6ef166..8c7fcae39a9 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr38510.c +++ b/gcc/testsuite/gcc.dg/graphite/pr38510.c @@ -3,6 +3,7 @@ typedef long int integer; typedef double doublereal; static int balanc_(nm, n, a, low, igh, scale) +int nm, n, low, igh, scale; doublereal *a; { integer a_dim1, a_offset, i__1, i__2; diff --git a/gcc/testsuite/gcc.dg/graphite/pr38786.c b/gcc/testsuite/gcc.dg/graphite/pr38786.c index 47df44789f8..6c619ddc4cd 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr38786.c +++ b/gcc/testsuite/gcc.dg/graphite/pr38786.c @@ -10,6 +10,7 @@ typedef struct } RD_DATA; extern RD_DATA *rdopt; extern ImageParameters *img; +void dummy_slice_too_big (int bits_slice) { int i, j, k, l; diff --git a/gcc/testsuite/gcc.dg/graphite/pr39260.c b/gcc/testsuite/gcc.dg/graphite/pr39260.c index 066b5bde8c2..74977eae856 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr39260.c +++ b/gcc/testsuite/gcc.dg/graphite/pr39260.c @@ -1,5 +1,6 @@ /* { dg-options "-O2 -fgraphite-identity -ffast-math" } */ +void VBR_encode_frame (int mode_gr, int channels_out, int max_bits[2][2]) { int max_nbits_ch[2][2]; diff --git a/gcc/testsuite/gcc.dg/graphite/pr42284.c b/gcc/testsuite/gcc.dg/graphite/pr42284.c index 854c2514fa0..41f9a45a30c 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr42284.c +++ b/gcc/testsuite/gcc.dg/graphite/pr42284.c @@ -1,5 +1,7 @@ /* { dg-options "-O2 -fgraphite-identity" } */ +int foo (void); + int huft_build (unsigned *b) { diff --git a/gcc/testsuite/gcc.dg/graphite/pr42914.c b/gcc/testsuite/gcc.dg/graphite/pr42914.c index 606ee0871f4..9f7961197e1 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr42914.c +++ b/gcc/testsuite/gcc.dg/graphite/pr42914.c @@ -1,5 +1,7 @@ /* { dg-options "-O2 -g -ffast-math -fgraphite-identity" } */ +int abs (int); + int find_sad_16x16(int *mode) { int current, best; diff --git a/gcc/testsuite/gcc.dg/graphite/pr46404-1.c b/gcc/testsuite/gcc.dg/graphite/pr46404-1.c index c3e620cbc07..a3f404a2ac9 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr46404-1.c +++ b/gcc/testsuite/gcc.dg/graphite/pr46404-1.c @@ -1,5 +1,7 @@ /* { dg-options "-O -fgraphite-identity -fno-tree-scev-cprop" } */ +int foo (void); + int huft_build (unsigned *b) { diff --git a/gcc/testsuite/gcc.dg/graphite/pr60979.c b/gcc/testsuite/gcc.dg/graphite/pr60979.c index 0004a51248d..66fffa5395d 100644 --- a/gcc/testsuite/gcc.dg/graphite/pr60979.c +++ b/gcc/testsuite/gcc.dg/graphite/pr60979.c @@ -5,6 +5,7 @@ struct x; typedef struct x **(*a)(struct x *); +void d (const char *); struct x { union { diff --git a/gcc/testsuite/gcc.dg/graphite/scop-19.c b/gcc/testsuite/gcc.dg/graphite/scop-19.c index cfbf401642e..9dfc86580f5 100644 --- a/gcc/testsuite/gcc.dg/graphite/scop-19.c +++ b/gcc/testsuite/gcc.dg/graphite/scop-19.c @@ -15,6 +15,7 @@ struct d_growable_string { size_t alc; }; +void d_growable_string_resize (struct d_growable_string *dgs, size_t need) { size_t newalc; @@ -22,6 +23,7 @@ d_growable_string_resize (struct d_growable_string *dgs, size_t need) while (newalc < need) newalc <<= 1; } +void d_growable_string_append_buffer (struct d_growable_string *dgs, const char *s, size_t l) { -- 2.30.2