Commit 66346a05 by Marek Polacek Committed by Marek Polacek

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
parent 4b88cc6b
2014-10-16 Marek Polacek <polacek@redhat.com>
* 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 <mliska@suse.cz> 2014-10-16 Martin Liska <mliska@suse.cz>
Jan Hubicka <hubicka@ucw.cz> Jan Hubicka <hubicka@ucw.cz>
......
typedef int *lambda_vector; typedef int *lambda_vector;
typedef lambda_vector *lambda_matrix; typedef lambda_vector *lambda_matrix;
void
lambda_vector_add_mc (lambda_vector vec1, int const1, lambda_vector_add_mc (lambda_vector vec1, int const1,
lambda_vector vec2, int const2, lambda_vector vec2, int const2,
lambda_vector vec3, int size) lambda_vector vec3, int size)
...@@ -8,6 +9,7 @@ lambda_vector_add_mc (lambda_vector vec1, int const1, ...@@ -8,6 +9,7 @@ lambda_vector_add_mc (lambda_vector vec1, int const1,
for (i = 0; i < size; i++) for (i = 0; i < size; i++)
vec3[i] = const1 * vec1[i] + const2 * vec2[i]; vec3[i] = const1 * vec1[i] + const2 * vec2[i];
} }
void
lambda_matrix_add_mc (lambda_matrix mat1, int const1, lambda_matrix_add_mc (lambda_matrix mat1, int const1,
lambda_matrix mat2, int const2, lambda_matrix mat2, int const2,
lambda_matrix mat3, int m, int n) lambda_matrix mat3, int m, int n)
......
void bar (int);
void void
foo (int N, int k, int *fb) foo (int N, int k, int *fb)
{ {
......
...@@ -11,6 +11,7 @@ typedef struct ...@@ -11,6 +11,7 @@ typedef struct
} ImageParameters; } ImageParameters;
ImageParameters *img; ImageParameters *img;
void error (const char *);
void GenerateSequenceParameterSet(seq_parameter_set_rbsp_t *sps) void GenerateSequenceParameterSet(seq_parameter_set_rbsp_t *sps)
{ {
......
typedef _Complex float GFC_COMPLEX_4; typedef _Complex float GFC_COMPLEX_4;
void
matmul_c4 () matmul_c4 ()
{ {
int x, n, count; int x, n, count;
......
void SubMtx_blockDiagonalInfo (int **);
double *ZV_entries (void); double *ZV_entries (void);
void SubMtx_fillRowZV (int irow) void SubMtx_fillRowZV (int irow)
{ {
......
int abs (int);
int find_sad_16x16(int *intra_mode) int find_sad_16x16(int *intra_mode)
{ {
int current_intra_sad_2,best_intra_sad2; int current_intra_sad_2,best_intra_sad2;
......
extern a[]; extern int a[];
void
g () g ()
{ {
int i, b; int i, b;
......
int blah; int blah;
int
foo() foo()
{ {
int i; int i;
......
...@@ -3,6 +3,7 @@ typedef struct regnode ...@@ -3,6 +3,7 @@ typedef struct regnode
char flags; char flags;
} regnode; } regnode;
extern const unsigned char A[]; extern const unsigned char A[];
int bar (regnode *);
char *foo (regnode *c, char *s, int norun) char *foo (regnode *c, char *s, int norun)
{ {
......
...@@ -13,6 +13,9 @@ typedef struct cop ...@@ -13,6 +13,9 @@ typedef struct cop
extern const unsigned char PL_utf8skip[]; extern const unsigned char PL_utf8skip[];
extern char PL_dowarn; extern char PL_dowarn;
extern COP *volatile PL_curcop; 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 * char *
S_find_byclass (regexp * prog, regnode * c, char *s, char *strend, S_find_byclass (regexp * prog, regnode * c, char *s, char *strend,
char *startpos, int norun) char *startpos, int norun)
...@@ -49,15 +52,18 @@ S_find_byclass (regexp * prog, regnode * c, char *s, char *strend, ...@@ -49,15 +52,18 @@ S_find_byclass (regexp * prog, regnode * c, char *s, char *strend,
got_it: got_it:
return s; return s;
} }
void
Perl_re_intuit_start (regexp * prog) Perl_re_intuit_start (regexp * prog)
{ {
S_find_byclass (prog, 0, 0, 0, 0, 1); S_find_byclass (prog, 0, 0, 0, 0, 1);
} }
void
Perl_regexec_flags (register regexp * prog, Perl_regexec_flags (register regexp * prog,
register char *strend) register char *strend)
{ {
S_find_byclass (prog, 0, 0, strend, 0, 0); S_find_byclass (prog, 0, 0, strend, 0, 0);
} }
int
S_regtry (regexp * prog, char *startpos) S_regtry (regexp * prog, char *startpos)
{ {
} }
...@@ -41,6 +41,7 @@ test (const unsigned char *s1, const unsigned char *s2, size_t len, int expected ...@@ -41,6 +41,7 @@ test (const unsigned char *s1, const unsigned char *s2, size_t len, int expected
__builtin_abort (); __builtin_abort ();
} }
int
main () main ()
{ {
size_t off1, off2, len, i; size_t off1, off2, len, i;
......
unsigned char buf[10]; unsigned char buf[10];
int
main () main ()
{ {
unsigned off1, len, i; unsigned off1, len, i;
......
void void
f (n, ppt, xrot) f (int n, int ppt, int xrot)
{ {
int tileWidth; int tileWidth;
int nlwSrc; int nlwSrc;
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
typedef unsigned char UChar; typedef unsigned char UChar;
typedef int Int32; typedef int Int32;
typedef unsigned int UInt32; typedef unsigned int UInt32;
void VPrintf0(const char *);
void AssertH (int, int);
void fallbackSort ( UInt32* fmap, void fallbackSort ( UInt32* fmap,
UInt32* eclass, UInt32* eclass,
......
/* { dg-options "-O3 -fgraphite-identity" } */ /* { dg-options "-O3 -fgraphite-identity" } */
int
test_seg(int a, int b) test_seg(int a, int b)
{ {
int i,r=1; int i,r=1;
......
...@@ -22,6 +22,7 @@ struct magic { ...@@ -22,6 +22,7 @@ struct magic {
TEST_SV* mg_obj; TEST_SV* mg_obj;
}; };
extern TEST_SV PL_sv_undef; extern TEST_SV PL_sv_undef;
void
Perl_av_fill( register TEST_AV *av, int fill) Perl_av_fill( register TEST_AV *av, int fill)
{ {
TEST_MAGIC *mg; TEST_MAGIC *mg;
......
...@@ -6,6 +6,7 @@ struct test ...@@ -6,6 +6,7 @@ struct test
int type ; int type ;
int symflag ; int symflag ;
}; };
int
Chv_copyEntriesToVector ( input *chv,double *dvec) Chv_copyEntriesToVector ( input *chv,double *dvec)
{ {
double *entries ; double *entries ;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
static int qsz; static int qsz;
void specqsort(base, n, size, compar) void specqsort(base, n, size, compar)
int n, size, compar;
char *base; char *base;
{ {
register char c, *i, *j, *lo, *hi; register char c, *i, *j, *lo, *hi;
......
...@@ -4,6 +4,7 @@ typedef unsigned char U8; ...@@ -4,6 +4,7 @@ typedef unsigned char U8;
extern char test1; extern char test1;
char *Perl_screaminstr (int, int, int); char *Perl_screaminstr (int, int, int);
int Perl_utf8_distance (U8 *, U8 *);
void void
Perl_re_intuit_start( int minlen, char *strend, unsigned int flags, int i) Perl_re_intuit_start( int minlen, char *strend, unsigned int flags, int i)
......
...@@ -3,6 +3,7 @@ typedef long int integer; ...@@ -3,6 +3,7 @@ typedef long int integer;
typedef double doublereal; typedef double doublereal;
static int balanc_(nm, n, a, low, igh, scale) static int balanc_(nm, n, a, low, igh, scale)
int nm, n, low, igh, scale;
doublereal *a; doublereal *a;
{ {
integer a_dim1, a_offset, i__1, i__2; integer a_dim1, a_offset, i__1, i__2;
......
...@@ -10,6 +10,7 @@ typedef struct ...@@ -10,6 +10,7 @@ typedef struct
} RD_DATA; } RD_DATA;
extern RD_DATA *rdopt; extern RD_DATA *rdopt;
extern ImageParameters *img; extern ImageParameters *img;
void
dummy_slice_too_big (int bits_slice) dummy_slice_too_big (int bits_slice)
{ {
int i, j, k, l; int i, j, k, l;
......
/* { dg-options "-O2 -fgraphite-identity -ffast-math" } */ /* { dg-options "-O2 -fgraphite-identity -ffast-math" } */
void
VBR_encode_frame (int mode_gr, int channels_out, int max_bits[2][2]) VBR_encode_frame (int mode_gr, int channels_out, int max_bits[2][2])
{ {
int max_nbits_ch[2][2]; int max_nbits_ch[2][2];
......
/* { dg-options "-O2 -fgraphite-identity" } */ /* { dg-options "-O2 -fgraphite-identity" } */
int foo (void);
int int
huft_build (unsigned *b) huft_build (unsigned *b)
{ {
......
/* { dg-options "-O2 -g -ffast-math -fgraphite-identity" } */ /* { dg-options "-O2 -g -ffast-math -fgraphite-identity" } */
int abs (int);
int find_sad_16x16(int *mode) int find_sad_16x16(int *mode)
{ {
int current, best; int current, best;
......
/* { dg-options "-O -fgraphite-identity -fno-tree-scev-cprop" } */ /* { dg-options "-O -fgraphite-identity -fno-tree-scev-cprop" } */
int foo (void);
int int
huft_build (unsigned *b) huft_build (unsigned *b)
{ {
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
struct x; struct x;
typedef struct x **(*a)(struct x *); typedef struct x **(*a)(struct x *);
void d (const char *);
struct x { struct x {
union { union {
......
...@@ -15,6 +15,7 @@ struct d_growable_string ...@@ -15,6 +15,7 @@ struct d_growable_string
{ {
size_t alc; size_t alc;
}; };
void
d_growable_string_resize (struct d_growable_string *dgs, size_t need) d_growable_string_resize (struct d_growable_string *dgs, size_t need)
{ {
size_t newalc; size_t newalc;
...@@ -22,6 +23,7 @@ d_growable_string_resize (struct d_growable_string *dgs, size_t need) ...@@ -22,6 +23,7 @@ d_growable_string_resize (struct d_growable_string *dgs, size_t need)
while (newalc < need) while (newalc < need)
newalc <<= 1; newalc <<= 1;
} }
void
d_growable_string_append_buffer (struct d_growable_string *dgs, d_growable_string_append_buffer (struct d_growable_string *dgs,
const char *s, size_t l) const char *s, size_t l)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment