* gcc.dg/
20020122-2.c: Use dg-additional-options. Fix implicit
declarations.
* gcc.dg/pr32176.c: Likewise.
* gcc.dg/builtin-apply4.c: Use dg-additional-options.
* gcc.dg/ia64-sync-1.c: Fix implicit declarations.
* gcc.dg/ia64-sync-2.c: Likewise.
* gcc.dg/ia64-sync-3.c: Likewise.
* gcc.dg/sync-2.c: Likewise.
* gcc.dg/sync-3.c: Likewise.
* gcc.target/i386/990524-1.c: Likewise.
* gcc.target/i386/avx512f-pr57233.c: Likewise.
* gcc.target/i386/avx512f-typecast-1.c: Likewise.
* gcc.target/i386/pr26826.c: Likewise.
* gcc.target/i386/pr37184.c: Likewise.
* gcc.target/i386/
20060125-1.c: Fix defaulting to int.
* gcc.target/i386/
20060125-2.c: Likewise.
* gcc.target/i386/memcpy-1.c: Likewise.
* gcc.target/i386/pr40934.c: Likewise.
* gcc.target/i386/sse-5.c: Likewise.
* gcc.target/i386/stackalign/asm-1.c: Likewise.
* gcc.target/i386/vectorize4.c: Likewise.
* gcc.target/i386/980312-1.c: Fix defaulting to int. Use
-fgnu89-inline.
* gcc.target/i386/980313-1.c: Likewise.
* gcc.target/i386/builtin-apply-mmx.c: Use -fgnu89-inline.
* gcc.target/i386/crc32-2.c: Use -std=gnu89.
* gcc.target/i386/crc32-3.c: Likewise.
* gcc.target/i386/intrinsics_3.c: Likewise.
* gcc.target/i386/loop-1.c: Likewise.
* gcc.target/i386/pr44948-2a.c: Likewise.
* gcc.target/i386/pr47564.c: Likewise.
* gcc.target/i386/pr50712.c: Likewise.
* gcc.target/i386/stackalign/return-2.c: Likewise.
Co-Authored-By: Marek Polacek <polacek@redhat.com>
From-SVN: r216300
+2014-10-16 Jakub Jelinek <jakub@redhat.com>
+ Marek Polacek <polacek@redhat.com>
+
+ * gcc.dg/20020122-2.c: Use dg-additional-options. Fix implicit
+ declarations.
+ * gcc.dg/pr32176.c: Likewise.
+ * gcc.dg/builtin-apply4.c: Use dg-additional-options.
+ * gcc.dg/ia64-sync-1.c: Fix implicit declarations.
+ * gcc.dg/ia64-sync-2.c: Likewise.
+ * gcc.dg/ia64-sync-3.c: Likewise.
+ * gcc.dg/sync-2.c: Likewise.
+ * gcc.dg/sync-3.c: Likewise.
+ * gcc.target/i386/990524-1.c: Likewise.
+ * gcc.target/i386/avx512f-pr57233.c: Likewise.
+ * gcc.target/i386/avx512f-typecast-1.c: Likewise.
+ * gcc.target/i386/pr26826.c: Likewise.
+ * gcc.target/i386/pr37184.c: Likewise.
+ * gcc.target/i386/20060125-1.c: Fix defaulting to int.
+ * gcc.target/i386/20060125-2.c: Likewise.
+ * gcc.target/i386/memcpy-1.c: Likewise.
+ * gcc.target/i386/pr40934.c: Likewise.
+ * gcc.target/i386/sse-5.c: Likewise.
+ * gcc.target/i386/stackalign/asm-1.c: Likewise.
+ * gcc.target/i386/vectorize4.c: Likewise.
+ * gcc.target/i386/980312-1.c: Fix defaulting to int. Use
+ -fgnu89-inline.
+ * gcc.target/i386/980313-1.c: Likewise.
+ * gcc.target/i386/builtin-apply-mmx.c: Use -fgnu89-inline.
+ * gcc.target/i386/crc32-2.c: Use -std=gnu89.
+ * gcc.target/i386/crc32-3.c: Likewise.
+ * gcc.target/i386/intrinsics_3.c: Likewise.
+ * gcc.target/i386/loop-1.c: Likewise.
+ * gcc.target/i386/pr44948-2a.c: Likewise.
+ * gcc.target/i386/pr47564.c: Likewise.
+ * gcc.target/i386/pr50712.c: Likewise.
+ * gcc.target/i386/stackalign/return-2.c: Likewise.
+
2014-10-15 Jan Hubicka <hubicka@ucw.cz>
PR lto/62026
/* { 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();
/* 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);
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 };
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 };
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 };
/* { 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)
{
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 };
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 };
};
__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();
};
__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();
/* { 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)
{
return __expm1 (__x) * __sgn1 (-__x);
}
+int
main ()
{
return tanh (3.45) != 0;
/* { 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)
register double __exm1 = __expm1 (__x);
return __exm1 / (__exm1 + 2.0) * __sgn1 (-__x);
}
+int
main ()
{
return tanh (3.45) != 0;
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)
#include "avx512f-check.h"
+int do_main (void);
+
static void
avx512f_test (void)
{
#include "avx512f-check.h"
+extern int memcmp (const void *, const void *, __SIZE_TYPE__);
void
avx512f_test (void)
/* 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"
/* { 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
/* { 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
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>
/* 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. */
char a[2048];
char b[2048];
-t()
+void t(void)
{
__builtin_memcpy (a,b,2048);
}
/* { 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;
/* { 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)
{
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;
/* 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 } */
/* 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)
/* { 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;
typedef double v2df __attribute__ ((vector_size (16)));
v2df p;
-q(v2df t) /* { dg-warning "SSE" "" } */
+void q(v2df t) /* { dg-warning "SSE" "" } */
{
p=t;
}
/* 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));}
/* { 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. */
extern double sqrt (double __x);
-calc_freq (int *dest)
+void calc_freq (int *dest)
{
float tmp_out[257];
int i;