Commit f714c670 by Jakub Jelinek Committed by Marek Polacek

20020122-2.c: Use dg-additional-options.

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