@@ -3,9 +3,10 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
-/* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-additional-options "-march=athlon" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
extern int access( char* );
+extern int strcmp(const char *s1, const char *s2);
extern int a();
char* foocp();
@@ -1,6 +1,6 @@
/* PR tree-optimization/20076 */
/* { dg-options "-O2 -Wmissing-noreturn -fgnu89-inline" } */
-/* { dg-options "-O2 -mno-mmx" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-additional-options "-mno-mmx" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
/* { dg-do run } */
extern void abort (void);
@@ -13,6 +13,7 @@ __extension__ typedef __SIZE_TYPE__ size_t;
extern void abort (void);
extern void *memcpy (void *, const void *, size_t);
+extern int memcmp (const void *, const void *, size_t);
static int AI[12];
static int init_noret_si[12] = { 0, 0, 0, 1, 0, 0, 0 , 0 , -1, 0, 0, -1 };
@@ -13,6 +13,7 @@ __extension__ typedef __SIZE_TYPE__ size_t;
extern void abort (void);
extern void *memcpy (void *, const void *, size_t);
+extern int memcmp (const void *, const void *, size_t);
static int AI[18];
static int init_si[18] = { 0,0,0,1,0,0, 0,0 ,-1,0,0,-1,0,0 ,-1,0,0,-1 };
@@ -10,6 +10,7 @@ __extension__ typedef __SIZE_TYPE__ size_t;
extern void abort (void);
extern void *memcpy (void *, const void *, size_t);
+extern int memcmp (const void *, const void *, size_t);
static int AI[4];
static int init_si[4] = { -30,-30,-50,-50 };
@@ -2,7 +2,9 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
-/* { dg-options "-O2 -fprefetch-loop-arrays -march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
+
+extern void _gfortran_abort ();
void foo (void)
{
@@ -11,6 +11,7 @@
extern void abort (void);
extern void *memcpy (void *, const void *, __SIZE_TYPE__);
+extern int memcmp (const void *, const void *, __SIZE_TYPE__);
static char AI[18];
static char init_qi[18] = { 3,5,7,9,0,0,0 ,0 ,-1,0,0,-1,0,0 ,-1,0,0,-1 };
@@ -8,6 +8,7 @@
extern void abort (void);
extern void *memcpy (void *, const void *, __SIZE_TYPE__);
+extern int memcmp (const void *, const void *, __SIZE_TYPE__);
static char AI[18] __attribute__((__aligned__ (4)));
static char init_qi[18] = { 3,5,7,9,0,0,0 ,0 ,-1,0,0,-1,0,0 ,-1,0,0,-1 };
@@ -12,7 +12,7 @@ struct a
};
__attribute__ ((noinline))
-__attribute__ ((regparm(1))) t(struct a a)
+__attribute__ ((regparm(1))) void t(struct a a)
{
if (a.a!=1 || a.b!=1 || a.c!=1)
abort();
@@ -12,7 +12,7 @@ struct a
};
__attribute__ ((noinline))
-__attribute__ ((regparm(1))) t(struct a a)
+__attribute__ ((regparm(1))) void t(struct a a)
{
if (a.a!=1 || a.b!=1 || a.c!=1)
abort();
@@ -1,6 +1,6 @@
/* { dg-do link } */
/* { dg-require-effective-target ia32 } */
-/* { dg-options "-O2 -march=pentiumpro" } */
+/* { dg-options "-O2 -march=pentiumpro -fgnu89-inline" } */
extern __inline double
__expm1 (double __x)
@@ -19,6 +19,7 @@ tanh (double __x)
{
return __expm1 (__x) * __sgn1 (-__x);
}
+int
main ()
{
return tanh (3.45) != 0;
@@ -1,6 +1,6 @@
/* { dg-do link } */
/* { dg-require-effective-target ia32 } */
-/* { dg-options "-O2 -march=pentiumpro" } */
+/* { dg-options "-O2 -march=pentiumpro -fgnu89-inline" } */
extern __inline double
__expm1 (double __x)
@@ -20,6 +20,7 @@ tanh (double __x)
register double __exm1 = __expm1 (__x);
return __exm1 / (__exm1 + 2.0) * __sgn1 (-__x);
}
+int
main ()
{
return tanh (3.45) != 0;
@@ -6,6 +6,7 @@ typedef struct t_anim_info {
char *new_filename;
long first_frame_nr;
} t_anim_info;
+void gimp_image_delete(int);
static int
p_frames_to_multilayer(t_anim_info *ainfo_ptr,
long range_from, long range_to)
@@ -4,6 +4,8 @@
#include "avx512f-check.h"
+int do_main (void);
+
static void
avx512f_test (void)
{
@@ -4,6 +4,7 @@
#include "avx512f-check.h"
+extern int memcmp (const void *, const void *, __SIZE_TYPE__);
void
avx512f_test (void)
@@ -10,7 +10,7 @@
/* This test case is adapted from gcc.dg/builtin-apply4.c. */
/* { dg-do run { xfail { ! *-*-darwin* } } } */
-/* { dg-options "-O2 -mmmx" } */
+/* { dg-options "-O2 -mmmx -fgnu89-inline" } */
/* { dg-require-effective-target ia32 } */
#include "mmx-check.h"
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -mcrc32" } */
+/* { dg-options "-O2 -mcrc32 -std=gnu89" } */
/* { dg-final { scan-assembler "crc32q\[^\\n\]*rax" { target { ! { ia32 } } } } } */
unsigned long long
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
-/* { dg-options "-O2 -mcrc32" } */
+/* { dg-options "-O2 -mcrc32 -std=gnu89" } */
/* { dg-final { scan-assembler "__builtin_ia32_crc32di" } } */
unsigned long long
@@ -4,7 +4,7 @@
popcntintrin.h */
/* { dg-do compile } */
-/* { dg-options "-O2 -msse -mno-sse4.1 -mno-sse4.2 -mno-popcnt" } */
+/* { dg-options "-O2 -msse -mno-sse4.1 -mno-sse4.2 -mno-popcnt -std=gnu89" } */
#include <popcntintrin.h>
@@ -1,7 +1,7 @@
/* PR optimization/9888 */
/* { dg-do run } */
/* { dg-require-effective-target ia32 } */
-/* { dg-options "-mtune=k6 -O3" } */
+/* { dg-options "-mtune=k6 -O3 -std=gnu89" } */
/* Verify that GCC doesn't emit out of range 'loop' instructions. */
@@ -11,7 +11,7 @@
char a[2048];
char b[2048];
-t()
+void t(void)
{
__builtin_memcpy (a,b,2048);
}
@@ -2,6 +2,8 @@
/* { dg-require-effective-target ia32 } */
/* { dg-options "-O -fomit-frame-pointer -march=i586" } */
+int bar (int);
+
void foo(char* p, char c, int i)
{
char a[2], *q=a+1;
@@ -2,6 +2,8 @@
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O1" } */
+extern int mod_rhs (int);
+
static inline unsigned int
rshift_u_s (unsigned int left, int right)
{
@@ -4,7 +4,7 @@
extern double host_frametime;
extern float pitchvel;
-V_DriftPitch (float delta, float move)
+void V_DriftPitch (float delta, float move)
{
if (!delta)
move = host_frametime;
@@ -1,6 +1,6 @@
/* PR target/44948 */
/* { dg-do run } */
-/* { dg-options "-O -Wno-psabi -mno-sse -mtune=generic" } */
+/* { dg-options "-O -Wno-psabi -mno-sse -mtune=generic -std=gnu89" } */
/* { dg-require-effective-target ia32 } */
/* { dg-require-effective-target sse2_runtime } */
/* { dg-additional-sources pr44948-2b.c } */
@@ -1,6 +1,6 @@
/* PR target/47564 */
/* { dg-do compile } */
-/* { dg-options "-O2 -msse2" } */
+/* { dg-options "-O2 -msse2 -std=gnu89" } */
static inline unsigned long long
foo (const unsigned char *p)
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -std=gnu89" } */
typedef __builtin_va_list __va_list;
typedef __va_list __gnuc_va_list;
@@ -5,7 +5,7 @@
typedef double v2df __attribute__ ((vector_size (16)));
v2df p;
-q(v2df t) /* { dg-warning "SSE" "" } */
+void q(v2df t) /* { dg-warning "SSE" "" } */
{
p=t;
}
@@ -4,4 +4,4 @@
/* This case is to detect a compile time regression introduced in stack
branch development. */
-f(){asm("%0"::"r"(1.5F));}g(){asm("%0"::"r"(1.5));}
+void f(){asm("%0"::"r"(1.5F));}void g(){asm("%0"::"r"(1.5));}
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
-/* { dg-options "-mpreferred-stack-boundary=2" } */
+/* { dg-options "-mpreferred-stack-boundary=2 -std=gnu89" } */
/* This compile only test is to detect an assertion failure in stack branch
development. */
@@ -5,7 +5,7 @@
extern double sqrt (double __x);
-calc_freq (int *dest)
+void calc_freq (int *dest)
{
float tmp_out[257];
int i;