From 9dddb6f5799c171a79d82f681f8d2b7b8eb85d17 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 2 Oct 2014 09:37:53 +0000 Subject: [PATCH] 20000120-2.c: Use -fgnu89-inline. * gcc.c-torture/compile/20000120-2.c: Use -fgnu89-inline. * gcc.c-torture/compile/20011119-1.c: Likewise. * gcc.c-torture/compile/20011119-2.c: Likewise. * gcc.c-torture/compile/20021120-1.c: Likewise. * gcc.c-torture/compile/20021120-2.c: Likewise. * gcc.c-torture/compile/20050215-1.c: Likewise. * gcc.c-torture/compile/20050215-2.c: Likewise. * gcc.c-torture/compile/20050215-3.c: Likewise. * gcc.c-torture/compile/pr37669.c: Likewise. * gcc.c-torture/execute/20020107-1.c: Likewise. * gcc.c-torture/execute/restrict-1.c: Likewise. * gcc.c-torture/compile/20090721-1.c: Fix defaulting to int. * gcc.c-torture/execute/930529-1.c: Likewise. * gcc.c-torture/execute/920612-1.c: Likewise. * gcc.c-torture/execute/920711-1.c: Likewise. * gcc.c-torture/execute/990127-2.c: Likewise. * gcc.c-torture/execute/pr40386.c: Likewise. * gcc.c-torture/execute/pr57124.c: Likewise. * gcc.c-torture/compile/pr34808.c: Add function declarations. * gcc.c-torture/compile/pr42299.c: Likewise. * gcc.c-torture/compile/pr48517.c: Use -std=gnu89. * gcc.c-torture/compile/simd-6.c: Likewise. * gcc.c-torture/execute/pr53645-2.c: Likewise. * gcc.c-torture/execute/pr53645.c: Likewise. * gcc.c-torture/execute/20001121-1.c: Use -fgnu89-inline. Add function declarations. * gcc.c-torture/execute/980608-1.c: Likewise. * gcc.c-torture/execute/bcp-1.c: Likewise. * gcc.c-torture/execute/p18298.c: Likewise. * gcc.c-torture/execute/unroll-1.c: Likewise. * gcc.c-torture/execute/va-arg-7.c: Likewise. * gcc.c-torture/execute/va-arg-8.c: Likewise. * gcc.c-torture/execute/930526-1.c: Use -fgnu89-inline. Add function declarations. Fix defaulting to int. * gcc.c-torture/execute/961223-1.c: Likewise. * gcc.c-torture/execute/loop-2c.c: Use -fgnu89-inline and -Wno-pointer-to-int-cast. Fix defaulting to int. From-SVN: r215798 --- gcc/testsuite/ChangeLog | 40 +++++++++++++++++++ .../gcc.c-torture/compile/20000120-2.c | 2 + .../gcc.c-torture/compile/20011119-1.c | 1 + .../gcc.c-torture/compile/20011119-2.c | 1 + .../gcc.c-torture/compile/20021120-1.c | 2 + .../gcc.c-torture/compile/20021120-2.c | 2 + .../gcc.c-torture/compile/20050215-1.c | 1 + .../gcc.c-torture/compile/20050215-2.c | 1 + .../gcc.c-torture/compile/20050215-3.c | 1 + .../gcc.c-torture/compile/20090721-1.c | 2 +- gcc/testsuite/gcc.c-torture/compile/pr34808.c | 3 ++ gcc/testsuite/gcc.c-torture/compile/pr37669.c | 1 + gcc/testsuite/gcc.c-torture/compile/pr42299.c | 2 + gcc/testsuite/gcc.c-torture/compile/pr48517.c | 2 +- gcc/testsuite/gcc.c-torture/compile/simd-6.c | 2 + .../gcc.c-torture/execute/20001121-1.c | 5 +++ .../gcc.c-torture/execute/20020107-1.c | 1 + .../gcc.c-torture/execute/920612-1.c | 4 +- .../gcc.c-torture/execute/920711-1.c | 4 +- .../gcc.c-torture/execute/930526-1.c | 9 ++++- .../gcc.c-torture/execute/930529-1.c | 3 +- .../gcc.c-torture/execute/961223-1.c | 6 +++ .../gcc.c-torture/execute/980608-1.c | 5 +++ .../gcc.c-torture/execute/990127-2.c | 1 + gcc/testsuite/gcc.c-torture/execute/bcp-1.c | 5 +++ gcc/testsuite/gcc.c-torture/execute/loop-2c.c | 9 ++++- gcc/testsuite/gcc.c-torture/execute/p18298.c | 3 ++ gcc/testsuite/gcc.c-torture/execute/pr40386.c | 1 + .../gcc.c-torture/execute/pr53645-2.c | 1 + gcc/testsuite/gcc.c-torture/execute/pr53645.c | 1 + gcc/testsuite/gcc.c-torture/execute/pr57124.c | 4 +- .../gcc.c-torture/execute/restrict-1.c | 1 + .../gcc.c-torture/execute/unroll-1.c | 5 +++ .../gcc.c-torture/execute/va-arg-7.c | 4 ++ .../gcc.c-torture/execute/va-arg-8.c | 4 ++ 35 files changed, 127 insertions(+), 12 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b11b45aace7..32c6fe78410 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,43 @@ +2014-10-02 Marek Polacek + + * gcc.c-torture/compile/20000120-2.c: Use -fgnu89-inline. + * gcc.c-torture/compile/20011119-1.c: Likewise. + * gcc.c-torture/compile/20011119-2.c: Likewise. + * gcc.c-torture/compile/20021120-1.c: Likewise. + * gcc.c-torture/compile/20021120-2.c: Likewise. + * gcc.c-torture/compile/20050215-1.c: Likewise. + * gcc.c-torture/compile/20050215-2.c: Likewise. + * gcc.c-torture/compile/20050215-3.c: Likewise. + * gcc.c-torture/compile/pr37669.c: Likewise. + * gcc.c-torture/execute/20020107-1.c: Likewise. + * gcc.c-torture/execute/restrict-1.c: Likewise. + * gcc.c-torture/compile/20090721-1.c: Fix defaulting to int. + * gcc.c-torture/execute/930529-1.c: Likewise. + * gcc.c-torture/execute/920612-1.c: Likewise. + * gcc.c-torture/execute/920711-1.c: Likewise. + * gcc.c-torture/execute/990127-2.c: Likewise. + * gcc.c-torture/execute/pr40386.c: Likewise. + * gcc.c-torture/execute/pr57124.c: Likewise. + * gcc.c-torture/compile/pr34808.c: Add function declarations. + * gcc.c-torture/compile/pr42299.c: Likewise. + * gcc.c-torture/compile/pr48517.c: Use -std=gnu89. + * gcc.c-torture/compile/simd-6.c: Likewise. + * gcc.c-torture/execute/pr53645-2.c: Likewise. + * gcc.c-torture/execute/pr53645.c: Likewise. + * gcc.c-torture/execute/20001121-1.c: Use -fgnu89-inline. Add function + declarations. + * gcc.c-torture/execute/980608-1.c: Likewise. + * gcc.c-torture/execute/bcp-1.c: Likewise. + * gcc.c-torture/execute/p18298.c: Likewise. + * gcc.c-torture/execute/unroll-1.c: Likewise. + * gcc.c-torture/execute/va-arg-7.c: Likewise. + * gcc.c-torture/execute/va-arg-8.c: Likewise. + * gcc.c-torture/execute/930526-1.c: Use -fgnu89-inline. Add function + declarations. Fix defaulting to int. + * gcc.c-torture/execute/961223-1.c: Likewise. + * gcc.c-torture/execute/loop-2c.c: Use -fgnu89-inline and + -Wno-pointer-to-int-cast. Fix defaulting to int. + 2014-10-02 Andrew Pinski Max Ostapenko diff --git a/gcc/testsuite/gcc.c-torture/compile/20000120-2.c b/gcc/testsuite/gcc.c-torture/compile/20000120-2.c index 737eb92ac64..939c52de318 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000120-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000120-2.c @@ -1,3 +1,5 @@ +/* { dg-options "-fgnu89-inline" } */ + extern __inline__ int odd(int i) { diff --git a/gcc/testsuite/gcc.c-torture/compile/20011119-1.c b/gcc/testsuite/gcc.c-torture/compile/20011119-1.c index b4b80ae2f1d..5d036c93406 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20011119-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20011119-1.c @@ -1,3 +1,4 @@ +/* { dg-options "-fgnu89-inline" } */ /* { dg-require-weak "" } */ /* { dg-require-alias "" } */ #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname) diff --git a/gcc/testsuite/gcc.c-torture/compile/20011119-2.c b/gcc/testsuite/gcc.c-torture/compile/20011119-2.c index e06809f3387..ea1176a8bbc 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20011119-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/20011119-2.c @@ -1,3 +1,4 @@ +/* { dg-options "-fgnu89-inline" } */ /* { dg-require-weak "" } */ /* { dg-require-alias "" } */ #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname) diff --git a/gcc/testsuite/gcc.c-torture/compile/20021120-1.c b/gcc/testsuite/gcc.c-torture/compile/20021120-1.c index 423f8ec1964..3dc49287f1a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20021120-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20021120-1.c @@ -4,6 +4,8 @@ /* Verify that GCC doesn't get confused by the redefinition of an extern inline function. */ +/* { dg-options "-fgnu89-inline" } */ + extern int inline foo () { return 0; } extern int inline bar () { return 0; } static int inline bar () { return foo(); } diff --git a/gcc/testsuite/gcc.c-torture/compile/20021120-2.c b/gcc/testsuite/gcc.c-torture/compile/20021120-2.c index 51f0e257dfd..cd9eda0e55d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20021120-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/20021120-2.c @@ -4,6 +4,8 @@ /* Verify that GCC doesn't get confused by the redefinition of an extern inline function. */ +/* { dg-options "-fgnu89-inline" } */ + extern int inline foo () { return 0; } extern int inline bar () { return 0; } static int bar () { return foo(); } diff --git a/gcc/testsuite/gcc.c-torture/compile/20050215-1.c b/gcc/testsuite/gcc.c-torture/compile/20050215-1.c index e9717797a10..83d0cb20842 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20050215-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20050215-1.c @@ -1,4 +1,5 @@ /* PR tree-optimization/18947 */ +/* { dg-options "-fgnu89-inline" } */ extern __inline void f1 (void) { } extern __inline void f2 (void) { f1 (); } void f2 (void) {} diff --git a/gcc/testsuite/gcc.c-torture/compile/20050215-2.c b/gcc/testsuite/gcc.c-torture/compile/20050215-2.c index 44550d04ce7..9feea6acfd9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20050215-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/20050215-2.c @@ -1,4 +1,5 @@ /* PR tree-optimization/18947 */ +/* { dg-options "-fgnu89-inline" } */ int v; extern __inline void f1 (void) { v++; } void f4 (void) { f1 (); } diff --git a/gcc/testsuite/gcc.c-torture/compile/20050215-3.c b/gcc/testsuite/gcc.c-torture/compile/20050215-3.c index 7a35eb6d0c1..67a4f267afe 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20050215-3.c +++ b/gcc/testsuite/gcc.c-torture/compile/20050215-3.c @@ -1,4 +1,5 @@ /* PR tree-optimization/18947 */ +/* { dg-options "-fgnu89-inline" } */ int v; extern __inline void f0 (void) { v++; } extern __inline void f1 (void) { f0 (); } diff --git a/gcc/testsuite/gcc.c-torture/compile/20090721-1.c b/gcc/testsuite/gcc.c-torture/compile/20090721-1.c index 2122b3405d6..928cafa6c7c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20090721-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20090721-1.c @@ -1,3 +1,3 @@ /* { dg-options "-fno-tree-sra" } */ union u {double d;long long ll;}; -f(double x, int n){union u v;v.d=x;if(n>=0){v.ll<<=63;}else{v.ll-=1<<-n;v.ll>>=-n;}return v.ll;} +int f(double x, int n){union u v;v.d=x;if(n>=0){v.ll<<=63;}else{v.ll-=1<<-n;v.ll>>=-n;}return v.ll;} diff --git a/gcc/testsuite/gcc.c-torture/compile/pr34808.c b/gcc/testsuite/gcc.c-torture/compile/pr34808.c index 8224061e693..63be3f6287a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr34808.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr34808.c @@ -6,6 +6,9 @@ extern int flags; struct r { int code; int val;}; +void bar (void); +void baz (void); + int foo (struct r *home) { diff --git a/gcc/testsuite/gcc.c-torture/compile/pr37669.c b/gcc/testsuite/gcc.c-torture/compile/pr37669.c index 68e96c621cf..c78243b15fc 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr37669.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr37669.c @@ -1,4 +1,5 @@ /* This testcase used to fail because a miscompiled execute_fold_all_builtins. */ +/* { dg-options "-fgnu89-inline" } */ typedef __SIZE_TYPE__ size_t; extern __inline __attribute__ ((__always_inline__)) int __attribute__ diff --git a/gcc/testsuite/gcc.c-torture/compile/pr42299.c b/gcc/testsuite/gcc.c-torture/compile/pr42299.c index 5a9199f274a..65a9bf74ffb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr42299.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr42299.c @@ -1,5 +1,7 @@ /* { dg-options "-g" } */ +void bar (void); + static int foo (int x, int y) { diff --git a/gcc/testsuite/gcc.c-torture/compile/pr48517.c b/gcc/testsuite/gcc.c-torture/compile/pr48517.c index 30b3ecbb354..4cfe038220b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr48517.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr48517.c @@ -1,6 +1,6 @@ /* PR c/48517 */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu89" } */ void bar (const unsigned short *); diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-6.c b/gcc/testsuite/gcc.c-torture/compile/simd-6.c index 7998e152f89..3e34128e64a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/simd-6.c +++ b/gcc/testsuite/gcc.c-torture/compile/simd-6.c @@ -1,3 +1,5 @@ +/* { dg-options "-std=gnu89" } */ + typedef int __attribute__((vector_size (8))) vec; vec a[] = {(vec) {1, 2}, {3, 4}}; diff --git a/gcc/testsuite/gcc.c-torture/execute/20001121-1.c b/gcc/testsuite/gcc.c-torture/execute/20001121-1.c index 3647456f548..a3c68584905 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20001121-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20001121-1.c @@ -1,3 +1,8 @@ +/* { dg-options "-fgnu89-inline" } */ + +extern void abort (void); +extern void exit (int); + double d; __inline__ double foo (void) diff --git a/gcc/testsuite/gcc.c-torture/execute/20020107-1.c b/gcc/testsuite/gcc.c-torture/execute/20020107-1.c index d5bbcc41324..23d8aebf45e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20020107-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20020107-1.c @@ -1,5 +1,6 @@ /* This testcase failed because - 1 - buf was simplified into ~buf and when later expanding it back into - buf + -1, -1 got lost. */ +/* { dg-options "-fgnu89-inline" } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.c-torture/execute/920612-1.c b/gcc/testsuite/gcc.c-torture/execute/920612-1.c index bc630035200..8553de2c5af 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920612-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920612-1.c @@ -3,5 +3,5 @@ extern void abort (void); extern void exit (int); -f(j)int j;{return++j>0;} -main(){if(f((~0U)>>1))abort();exit(0);} +int f(j)int j;{return++j>0;} +int main(){if(f((~0U)>>1))abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920711-1.c b/gcc/testsuite/gcc.c-torture/execute/920711-1.c index f72ef7c5452..de63b8f834d 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920711-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920711-1.c @@ -3,5 +3,5 @@ extern void abort (void); extern void exit (int); -f(long a){return (--a > 0);} -main(){if(f(0x80000000L)==0)abort();exit(0);} +int f(long a){return (--a > 0);} +int main(){if(f(0x80000000L)==0)abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/930526-1.c b/gcc/testsuite/gcc.c-torture/execute/930526-1.c index bbf63c6009a..6b562044d64 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930526-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930526-1.c @@ -1,5 +1,9 @@ -inline -f (x) +/* { dg-options "-fgnu89-inline" } */ + +extern void exit (int); + +inline void +f (int x) { int *(p[25]); int m[25*7]; @@ -11,6 +15,7 @@ f (x) p[1][0] = 0; } +int main () { f (7); diff --git a/gcc/testsuite/gcc.c-torture/execute/930529-1.c b/gcc/testsuite/gcc.c-torture/execute/930529-1.c index 9c4085ce1a0..0f3668e7f8e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930529-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930529-1.c @@ -3,8 +3,9 @@ extern void abort (void); extern void exit (int); -dd (x,d) { return x / d; } +int dd (int x, int d) { return x / d; } +int main () { int i; diff --git a/gcc/testsuite/gcc.c-torture/execute/961223-1.c b/gcc/testsuite/gcc.c-torture/execute/961223-1.c index 9bc6cfa354d..d31962aa454 100644 --- a/gcc/testsuite/gcc.c-torture/execute/961223-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/961223-1.c @@ -1,3 +1,8 @@ +/* { dg-options "-fgnu89-inline" } */ + +extern void exit (int); +extern void abort (void); + struct s { double d; }; @@ -9,6 +14,7 @@ sub (struct s s) return s; } +int main () { struct s t = { 2.0 }; diff --git a/gcc/testsuite/gcc.c-torture/execute/980608-1.c b/gcc/testsuite/gcc.c-torture/execute/980608-1.c index b34d1374903..f6c15e80bc9 100644 --- a/gcc/testsuite/gcc.c-torture/execute/980608-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/980608-1.c @@ -1,5 +1,10 @@ +/* { dg-options "-fgnu89-inline" } */ + #include +extern void abort(void); +extern void exit (int); + void f1(int a,int b,int c,int d,int e, int f,int g,int h,int i,int j, int k,int l,int m,int n,int o) { diff --git a/gcc/testsuite/gcc.c-torture/execute/990127-2.c b/gcc/testsuite/gcc.c-torture/execute/990127-2.c index e87d27a3450..939000ea94e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/990127-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/990127-2.c @@ -18,6 +18,7 @@ fpTest (double x, double y) fpEq (result1, result2); } +int main () { fpTest (35.7, 45.0); diff --git a/gcc/testsuite/gcc.c-torture/execute/bcp-1.c b/gcc/testsuite/gcc.c-torture/execute/bcp-1.c index 8dd8e22d76b..19c038bcc5a 100644 --- a/gcc/testsuite/gcc.c-torture/execute/bcp-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/bcp-1.c @@ -1,3 +1,8 @@ +/* { dg-options "-fgnu89-inline" } */ + +extern void abort (void); +extern void exit (int); + __attribute__ ((externally_visible)) int global; int func(void); diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-2c.c b/gcc/testsuite/gcc.c-torture/execute/loop-2c.c index 9facf3bfd92..17cdaaa095f 100644 --- a/gcc/testsuite/gcc.c-torture/execute/loop-2c.c +++ b/gcc/testsuite/gcc.c-torture/execute/loop-2c.c @@ -1,6 +1,11 @@ +/* { dg-options "-fgnu89-inline -Wno-pointer-to-int-cast" } */ + +extern void abort (void); +extern void exit (int); + int a[2]; -__inline__ f (b, o) +__inline__ void f (int b, int o) { unsigned int i; int *p; @@ -8,11 +13,13 @@ __inline__ f (b, o) *--p = i * 3 + o; } +void g(int b) { f (b, (int)a); } +int main () { a[0] = a[1] = 0; diff --git a/gcc/testsuite/gcc.c-torture/execute/p18298.c b/gcc/testsuite/gcc.c-torture/execute/p18298.c index 5aff51f5fab..50589962e22 100644 --- a/gcc/testsuite/gcc.c-torture/execute/p18298.c +++ b/gcc/testsuite/gcc.c-torture/execute/p18298.c @@ -1,5 +1,8 @@ +/* { dg-options "-fgnu89-inline" } */ + #include #include +extern void abort (void); int strcmp (const char*, const char*); char s[2048] = "a"; inline bool foo(const char *str) { diff --git a/gcc/testsuite/gcc.c-torture/execute/pr40386.c b/gcc/testsuite/gcc.c-torture/execute/pr40386.c index 59cd6411fbb..f39f1defa0e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr40386.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr40386.c @@ -25,6 +25,7 @@ long long ll = LL_VALUE; int shift1 = SHIFT1; int shift2 = SHIFT2; +int main () { if (ROR (c, shift1) != ROR (CHAR_VALUE, SHIFT1)) diff --git a/gcc/testsuite/gcc.c-torture/execute/pr53645-2.c b/gcc/testsuite/gcc.c-torture/execute/pr53645-2.c index a03dd2ef8dc..4638e30388f 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr53645-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr53645-2.c @@ -1,4 +1,5 @@ /* PR tree-optimization/53645 */ +/* { dg-options "-std=gnu89" } */ typedef unsigned short int UV __attribute__((vector_size (16))); typedef short int SV __attribute__((vector_size (16))); diff --git a/gcc/testsuite/gcc.c-torture/execute/pr53645.c b/gcc/testsuite/gcc.c-torture/execute/pr53645.c index 1e70d9e7635..d86a895356c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr53645.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr53645.c @@ -1,4 +1,5 @@ /* PR tree-optimization/53645 */ +/* { dg-options "-std=gnu89" } */ typedef unsigned int UV __attribute__((vector_size (16))); typedef int SV __attribute__((vector_size (16))); diff --git a/gcc/testsuite/gcc.c-torture/execute/pr57124.c b/gcc/testsuite/gcc.c-torture/execute/pr57124.c index ca6015872ed..41c90c51609 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr57124.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr57124.c @@ -4,7 +4,7 @@ extern void abort (void); extern void exit (int); -__attribute__ ((noinline)) +__attribute__ ((noinline)) void foo(short unsigned int *p1, short unsigned int *p2) { short unsigned int x1, x4; @@ -23,6 +23,7 @@ foo(short unsigned int *p1, short unsigned int *p2) exit (0); } +int main() { short unsigned int x, y; @@ -30,4 +31,3 @@ main() y = -10; foo (&x, &y); } - diff --git a/gcc/testsuite/gcc.c-torture/execute/restrict-1.c b/gcc/testsuite/gcc.c-torture/execute/restrict-1.c index 3c5696cb597..c5528615237 100644 --- a/gcc/testsuite/gcc.c-torture/execute/restrict-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/restrict-1.c @@ -2,6 +2,7 @@ Origin: Jeremy Denise Reduced: Wolfgang Bangerth Volker Reichelt */ +/* { dg-options "-fgnu89-inline" } */ extern void abort (); diff --git a/gcc/testsuite/gcc.c-torture/execute/unroll-1.c b/gcc/testsuite/gcc.c-torture/execute/unroll-1.c index 8812955652f..5606978539f 100644 --- a/gcc/testsuite/gcc.c-torture/execute/unroll-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/unroll-1.c @@ -1,3 +1,8 @@ +/* { dg-options "-fgnu89-inline" } */ + +extern void abort (void); +extern void exit (int); + inline int f (int x) { diff --git a/gcc/testsuite/gcc.c-torture/execute/va-arg-7.c b/gcc/testsuite/gcc.c-torture/execute/va-arg-7.c index f45219a56f5..c66cb608458 100644 --- a/gcc/testsuite/gcc.c-torture/execute/va-arg-7.c +++ b/gcc/testsuite/gcc.c-torture/execute/va-arg-7.c @@ -1,4 +1,8 @@ /* Origin: Franz Sirl */ +/* { dg-options "-fgnu89-inline" } */ + +extern void abort (void); +extern void exit (int); #include diff --git a/gcc/testsuite/gcc.c-torture/execute/va-arg-8.c b/gcc/testsuite/gcc.c-torture/execute/va-arg-8.c index 964833b5281..c3106932463 100644 --- a/gcc/testsuite/gcc.c-torture/execute/va-arg-8.c +++ b/gcc/testsuite/gcc.c-torture/execute/va-arg-8.c @@ -1,4 +1,8 @@ /* Origin: Franz Sirl */ +/* { dg-options "-fgnu89-inline" } */ + +extern void abort (void); +extern void exit (int); #include #include -- 2.30.2