Commit d90d7671 by Marek Polacek Committed by Marek Polacek

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
parent 04bbdb1d
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.
2014-10-02 Paolo Carlini <paolo.carlini@oracle.com> 2014-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53025 PR c++/53025
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -ftree-vectorize --param ggc-min-heapsize=0 --param ggc-min-expand=0" } */ /* { 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 DES_CBCUpdate(unsigned char * output, int len)
{ {
int work[2]; int work[2];
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
int a[256], b[256], c[256]; int a[256], b[256], c[256];
void
foo () { foo () {
int i; int i;
......
...@@ -15,6 +15,8 @@ struct packet_spaceship_info ...@@ -15,6 +15,8 @@ struct packet_spaceship_info
{ {
char structure[32 + 1]; char structure[32 + 1];
}; };
void lsend_packet_spaceship_info (struct packet_spaceship_info *);
void
send_spaceship_info (void) send_spaceship_info (void)
{ {
int j; int j;
......
...@@ -9,6 +9,7 @@ struct UNewTrie ...@@ -9,6 +9,7 @@ struct UNewTrie
int index[(0x110000 >> 1)]; int index[(0x110000 >> 1)];
}; };
typedef struct UNewTrie UNewTrie; typedef struct UNewTrie UNewTrie;
void
utrie_open_3_4 () utrie_open_3_4 ()
{ {
UNewTrie *trie; UNewTrie *trie;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
unsigned int wlookup2[203]; unsigned int wlookup2[203];
void
SetSoundVariables (int x) SetSoundVariables (int x)
{ {
for (x = 1; x < 32; x++) for (x = 1; x < 32; x++)
......
/* { dg-do compile } */ /* { dg-do compile } */
typedef unsigned long int *mp_ptr; typedef unsigned long int *mp_ptr;
typedef const unsigned long int *mp_srcptr; typedef const unsigned long int *mp_srcptr;
void
gmpz_export (void *data) gmpz_export (void *data)
{ {
mp_srcptr zp; mp_srcptr zp;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
void
stream_test (void) stream_test (void)
{ {
static float input[20]; static float input[20];
......
...@@ -8,7 +8,7 @@ typedef struct ...@@ -8,7 +8,7 @@ typedef struct
} }
fill_iter_info; fill_iter_info;
extern H5Diterate (fill_iter_info *); extern int H5Diterate (fill_iter_info *);
void test_select_fill_hyper_simple (long *offset) void test_select_fill_hyper_simple (long *offset)
{ {
......
/* PR middle-end/37730 */ /* PR middle-end/37730 */
/* { dg-do compile } */ /* { dg-do compile } */
void sdp_seq_alloc (void *);
void void
add_opush (void) add_opush (void)
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
typedef unsigned char uint8_t; typedef unsigned char uint8_t;
int
vsad16_c (void *c, uint8_t * s1, uint8_t * s2, int stride, int h) vsad16_c (void *c, uint8_t * s1, uint8_t * s2, int stride, int h)
{ {
int score = 0; int score = 0;
......
...@@ -30,6 +30,7 @@ int16_t g_4; ...@@ -30,6 +30,7 @@ int16_t g_4;
int8_t g_4_8; int8_t g_4_8;
uint32_t g_9[1]; uint32_t g_9[1];
uint32_t g_9_8[2]; uint32_t g_9_8[2];
void
int161 (void) int161 (void)
{ {
int32_t l_2; int32_t l_2;
...@@ -38,6 +39,7 @@ int161 (void) ...@@ -38,6 +39,7 @@ int161 (void)
g_9[0] ^= safe_rshift_func_int16_t_s_u (g_4, 1); g_9[0] ^= safe_rshift_func_int16_t_s_u (g_4, 1);
} }
int
int81 (void) int81 (void)
{ {
int32_t l_2; int32_t l_2;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -ftree-vectorize" } */ /* { dg-options "-O1 -ftree-vectorize" } */
void foo (unsigned long int);
long long
test (int *x) test (int *x)
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target vect_int } */ /* { 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 *foo (int n)
{ {
int *p; int *p;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
void bar (int *);
int *foo (int n) int *foo (int n)
{ {
int *p = __builtin_aligned_alloc (256, n * sizeof (int)); int *p = __builtin_aligned_alloc (256, n * sizeof (int));
......
...@@ -10,6 +10,7 @@ void sbar (short *); ...@@ -10,6 +10,7 @@ void sbar (short *);
/* multiple loops */ /* multiple loops */
void
foo (int n) foo (int n)
{ {
float a[N+1]; float a[N+1];
......
...@@ -10,6 +10,7 @@ void sbar (short *); ...@@ -10,6 +10,7 @@ void sbar (short *);
/* multiple loops */ /* multiple loops */
void
foo (int n) foo (int n)
{ {
float a[N+1]; float a[N+1];
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#define N 3001 #define N 3001
__attribute__ ((noinline)) __attribute__ ((noinline)) int
main1 (float *pa) main1 (float *pa)
{ {
int i; int i;
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
unsigned char X[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))); unsigned char X[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
unsigned char Y[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. /* Sum of absolute differences between arrays of unsigned char types.
Detected as a sad pattern. Detected as a sad pattern.
......
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